Retro68/binutils/ld/testsuite/ld-sparc/gotop-hidden.c
2018-12-28 16:25:28 +01:00

14 lines
196 B
C

#include <stdio.h>
extern unsigned int foo (void);
__attribute__((visibility("hidden"))) unsigned int var = 0xdeadbeef;
int main (void)
{
if (var == foo ())
puts ("PASS");
return 0;
}