diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-03-28 00:03:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-03-28 00:03:10 +0000 |
| commit | 517886963f021aa419fc5d5f4a33f6f6919fb041 (patch) | |
| tree | a49724c833303285444a9742f103249f1a5b4de0 /llvm/test/C++Frontend | |
| parent | b453c429af959251f2aea88f6bafccacf85a6d09 (diff) | |
| download | bcm5719-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.cpp | 17 |
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; +} |

