projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Now that numbered types have their number printed, it's no longer
[oota-llvm.git]
/
test
/
FrontendC
/
weak_constant.c
1
// RUN: %llvmgcc -S %s -O1 -o - | grep {ret.*123}
2
// Check for bug compatibility with gcc.
3
4
const int x __attribute((weak)) = 123;
5
6
int* f(void) {
7
return &x;
8
}
9
10
int g(void) {
11
return *f();
12
}