blob: 1c981722282ca146bbd976481588618f4afa076e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { 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;
}
|