Re: Disable execstack and rwx segments warnings for MIPS targets.
[binutils-gdb.git] / ld / testsuite / ld-i386 / weakundef1.c
1 #include <stdlib.h>
2 #include <stdio.h>
3
4 extern int visibility_var_weak
5 __attribute__ ((weak, visibility ("hidden")));
6
7 int
8 main ()
9 {
10 if (&visibility_var_weak != NULL)
11 abort ();
12
13 printf ("PASS\n");
14
15 return 0;
16 }