Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
llvm
/
2a9ddfb903ae3baede7282348afae1f750905248
/
.
/
test
/
FrontendC
/
weak_constant.c
blob: 53379482cb4d31e285cc35df56bb239f1e8a8697 [
file
] [
log
] [
blame
]
// RUN: %llvmgcc -S %s -O1 -o - | grep {ret.*123}
// Check for bug compatibility with gcc.
const
int
x __attribute
((
weak
))
=
123
;
int
*
f
(
void
)
{
return
&
x
;
}
int
g
(
void
)
{
return
*
f
();
}