[llvm-commits] CVS: llvm/test/C++Frontend/2007-03-27-FunctionVarRename.cpp
Chris Lattner
sabre at nondot.org
Tue Mar 27 17:03:27 PDT 2007
Changes in directory llvm/test/C++Frontend:
2007-03-27-FunctionVarRename.cpp added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+17 -0)
2007-03-27-FunctionVarRename.cpp | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/test/C++Frontend/2007-03-27-FunctionVarRename.cpp
diff -c /dev/null llvm/test/C++Frontend/2007-03-27-FunctionVarRename.cpp:1.1
*** /dev/null Tue Mar 27 19:03:20 2007
--- llvm/test/C++Frontend/2007-03-27-FunctionVarRename.cpp Tue Mar 27 19:03:10 2007
***************
*** 0 ****
--- 1,17 ----
+ // RUN: %llvmgxx %s -emit-llvm -S -o - | not grep 'eprintf1' &&
+ // RUN: %llvmgxx %s -emit-llvm -S -o - | not grep 'eprintf'
+
+ // Only one eprintf should exist in the output
+
+ extern "C"
+ void __eprintf();
+
+ void foo() {
+
+ __eprintf();
+ }
+
+ void *bar() {
+ extern void *__eprintf;
+ return &__eprintf;
+ }
More information about the llvm-commits
mailing list