[llvm-commits] CVS: llvm/test/Regression/C++Frontend/2004-11-27-EmitsUnusedInlineFunctions.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 27 12:32:11 PST 2004



Changes in directory llvm/test/Regression/C++Frontend:

2004-11-27-EmitsUnusedInlineFunctions.cpp added (r1.1)
---
Log message:

New testcase


---
Diffs of the changes:  (+7 -0)

Index: llvm/test/Regression/C++Frontend/2004-11-27-EmitsUnusedInlineFunctions.cpp
diff -c /dev/null llvm/test/Regression/C++Frontend/2004-11-27-EmitsUnusedInlineFunctions.cpp:1.1
*** /dev/null	Sat Nov 27 14:32:09 2004
--- llvm/test/Regression/C++Frontend/2004-11-27-EmitsUnusedInlineFunctions.cpp	Sat Nov 27 14:31:59 2004
***************
*** 0 ****
--- 1,7 ----
+ // The C++ front-end was emitting WAY too many inline functions.  This test
+ // verifies that it does not emit the body of getchar, because it is not used.
+ // This corresponds to PR459
+ 
+ // RUN: %llvmgxx %s -S -o - | not grep '^int .getchar'
+ 
+ #include <stdio.h>






More information about the llvm-commits mailing list