Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-i386/weakundef1.c

17 lines
222 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
#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;
}