gas:
[binutils/dougsmingw.git] / ld / testsuite / ld-elfweak / bar1a.c
blobdaf0c58bb7d5c5356ff44817abdacd208b32607c
1 #include <stdio.h>
3 extern int deallocate_foo;
5 extern int * bar ();
6 extern int * foo ();
7 extern void abort ();
8 extern void foobar ();
10 void
11 foobar ()
13 if (&deallocate_foo != bar () || &deallocate_foo != foo ())
14 abort ();
16 if (deallocate_foo)
17 printf ("weak deallocate_foo\n");
18 else
19 printf ("strong deallocate_foo\n");
22 int *
23 bar()
25 return &deallocate_foo;