Sign in
llvm
/
llvm-project
/
1c229c0472edfd59ce61ba063a93517df609ceb4
/
.
/
llvm
/
test
/
FrontendC
/
weak_constant.c
blob: 53379482cb4d31e285cc35df56bb239f1e8a8697 [
file
]
// 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
();
}