summaryrefslogtreecommitdiffstats
path: root/llvm/test/C++Frontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-28 00:03:10 +0000
committerChris Lattner <sabre@nondot.org>2007-03-28 00:03:10 +0000
commit517886963f021aa419fc5d5f4a33f6f6919fb041 (patch)
treea49724c833303285444a9742f103249f1a5b4de0 /llvm/test/C++Frontend
parentb453c429af959251f2aea88f6bafccacf85a6d09 (diff)
downloadbcm5719-llvm-517886963f021aa419fc5d5f4a33f6f6919fb041.tar.gz
bcm5719-llvm-517886963f021aa419fc5d5f4a33f6f6919fb041.zip
new testcase
llvm-svn: 35391
Diffstat (limited to 'llvm/test/C++Frontend')
-rw-r--r--llvm/test/C++Frontend/2007-03-27-FunctionVarRename.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2007-03-27-FunctionVarRename.cpp b/llvm/test/C++Frontend/2007-03-27-FunctionVarRename.cpp
new file mode 100644
index 00000000000..7a7eb2a8d77
--- /dev/null
+++ b/llvm/test/C++Frontend/2007-03-27-FunctionVarRename.cpp
@@ -0,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;
+}
OpenPOWER on IntegriCloud