binutils-gdb/ld/testsuite/ld-i386/weakundef1.c
H.J. Lu 0056441823 i386: Add hidden weak undefined tests
* testsuite/ld-i386/i386.exp: Run weakundef1 tests.
	* testsuite/ld-i386/weakundef1.c: New file.
2017-06-22 15:13:15 -07:00

17 lines
222 B
C

#include <stdlib.h>
#include <stdio.h>
extern int visibility_var_weak
__attribute__ ((weak, visibility ("hidden")));
int
main ()
{
if (&visibility_var_weak != NULL)
abort ();
printf ("PASS\n");
return 0;
}