Sign in
gnu
/
gcc
/
1ba7adabf29eb671e418692fad076ea6edd08e3d
/
.
/
gcc
/
testsuite
/
gcc.dg
/
weak
/
weak-7.c
blob: b5e5ba273497f9231d19b38567cbc482656595b3 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-require-weak "" } */
extern
void
*
foo
(
void
);
void
*
foo
(
void
)
{
return
(
void
*)
foo
;
}
/* { dg-error "function pointer" "pointer conversion" { target *-*-* } .-1 } */
extern
void
*
foo
(
void
)
__attribute__
((
weak
));