Sign in
gnu
/
binutils-gdb
/
refs/tags/gdb-10.2-release
/
.
/
ld
/
testsuite
/
ld-elf
/
pr25754-1a.c
blob: 2b048ec09bbbe0b76de2e97d45468daae3a25b9f [
file
] [
log
] [
blame
]
#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
;
}