Sign in
gnu
/
binutils-gdb
/
63f0e930d4667eb7dbc95c78f770cd58acd328ef
/
.
/
ld
/
testsuite
/
ld-x86-64
/
plt-main4.c
blob: 992ba5fad651f1c91031d957972492e7a194f7d7 [
file
] [
log
] [
blame
]
extern
int
foo
(
void
);
typedef
int
(*
func_p
)
(
void
);
extern
func_p foo_ptr
;
void
check_foo
(
void
)
{
if
(
foo_ptr
!=
foo
)
__builtin_abort
();
if
(
foo_ptr
()
!=
1
)
__builtin_abort
();
if
(
foo
()
!=
1
)
__builtin_abort
();
}