Sign in
llvm
/
llvm-archive
/
48649d2c83b557841c9e5c978d9ab5af13cb52e5
/
.
/
llvm-gcc-4.0
/
gcc
/
testsuite
/
gcc.dg
/
darwin-weakimport-2.c
blob: 1c981722282ca146bbd976481588618f4afa076e [
file
] [
log
] [
blame
]
/* { dg-do compile { target *-*-darwin* } } */
/* { dg-require-weak "" } */
/* { dg-final { scan-assembler "weak_reference _foo" } } */
extern
int
foo __attribute__
((
weak_import
));
int
main
(
void
)
{
if
(&
foo
)
return
foo
;
return
0
;
}