1 /* { dg-do compile } */
2 /* { dg-require-weak "" } */
4 extern void * foo (void);
5 void * foo (void) { return (void *)foo
; } /* { dg-error "precede" } */
6 /* { dg-error "function pointer" "pointer conversion" { target *-*-* } 5 } */
7 extern void * foo (void) __attribute__((weak
));