From e264f62ca09a8f65c87a46d562a4d0f9ec5d457e Mon Sep 17 00:00:00 2001 From: Shih-wei Liao Date: Wed, 10 Feb 2010 11:10:31 -0800 Subject: Check in LLVM r95781. --- test/FrontendC++/2007-03-27-FunctionVarRename.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/FrontendC++/2007-03-27-FunctionVarRename.cpp (limited to 'test/FrontendC++/2007-03-27-FunctionVarRename.cpp') diff --git a/test/FrontendC++/2007-03-27-FunctionVarRename.cpp b/test/FrontendC++/2007-03-27-FunctionVarRename.cpp new file mode 100644 index 0000000..538d6df --- /dev/null +++ b/test/FrontendC++/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 - | grep eprintf + +// Only one eprintf should exist in the output + +extern "C" +void __eprintf(); + +void foo() { + + __eprintf(); +} + +void *bar() { + extern void *__eprintf; + return &__eprintf; +} -- cgit v1.1