Retro68/binutils/ld/testsuite/ld-elf/pr25754-3a.c
Wolfgang Thaller f485e125c4 binutils 2.39
2022-10-27 20:45:45 +02:00

20 lines
244 B
C

#include <stdio.h>
#include <stdint.h>
extern uintptr_t bar;
uintptr_t *
__attribute__ ((noinline, noclone))
get_bar (void)
{
return &bar;
}
int
main ()
{
if ((uintptr_t) get_bar () == -0x80000001LL)
printf ("PASS\n");
return 0;
}