repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Shrink Thumb2 movcc instructions.
[llvm/avr.git]
/
test
/
FrontendC
/
weak_constant.c
blob
53379482cb4d31e285cc35df56bb239f1e8a8697
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
}