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