Sign in
gnu
/
gcc
/
refs/tags/releases/gcc-4.6.0
/
.
/
gcc
/
testsuite
/
gcc.dg
/
weak
/
weak-7.c
blob: 07c03bc975ad228e8418848a484609a0ea318bbf [
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 *-*-* } 5 } */
extern
void
*
foo
(
void
)
__attribute__
((
weak
));