mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
0056441823
* testsuite/ld-i386/i386.exp: Run weakundef1 tests. * testsuite/ld-i386/weakundef1.c: New file.
17 lines
222 B
C
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;
|
|
}
|