repo.or.cz
/
llvm
/
zpu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed some bugs.
[llvm/zpu.git]
/
test
/
FrontendC++
/
2007-03-27-FunctionVarRename.cpp
blob
538d6df1813cc8352a40cb9795b31c5872686511
1
// RUN: %llvmgxx %s -emit-llvm -S -o - | not grep eprintf1
2
// RUN: %llvmgxx %s -emit-llvm -S -o - | grep eprintf
3
4
// Only one eprintf should exist in the output
5
6
extern
"C"
7
void
__eprintf
();
8
9
void
foo
() {
10
11
__eprintf
();
12
}
13
14
void
*
bar
() {
15
extern
void
*
__eprintf
;
16
return
&
__eprintf
;
17
}