* gcc.dg/20061124-1.c: Add exit() function prototype.
[official-gcc.git] / gcc / testsuite / gcc.dg / darwin-weakimport-2.c
blob1c981722282ca146bbd976481588618f4afa076e
1 /* { dg-do compile { target *-*-darwin* } } */
2 /* { dg-require-weak "" } */
4 /* { dg-final { scan-assembler "weak_reference _foo" } } */
6 extern int foo __attribute__((weak_import));
8 int main(void)
10 if (&foo)
11 return foo;
12 return 0;