mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
20 lines
237 B
C
20 lines
237 B
C
|
#include <stdio.h>
|
||
|
#include <bfd_stdint.h>
|
||
|
|
||
|
extern uintptr_t bar;
|
||
|
|
||
|
uintptr_t *
|
||
|
__attribute__ ((noinline, noclone))
|
||
|
get_bar (void)
|
||
|
{
|
||
|
return &bar;
|
||
|
}
|
||
|
|
||
|
int
|
||
|
main ()
|
||
|
{
|
||
|
if ((uintptr_t) get_bar () == 42)
|
||
|
printf ("PASS\n");
|
||
|
return 0;
|
||
|
}
|