mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b747fd221d
commit
8667c76a36
17
test/C++Frontend/2007-03-27-FunctionVarRename.cpp
Normal file
17
test/C++Frontend/2007-03-27-FunctionVarRename.cpp
Normal file
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user