Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
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
));