Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / weak / weak-6.c
blob711003ccd03756064ebcba6130ea8d639494fdc5
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 #pragma weak foo