Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / weak / weak-7.c
blob7c4a4dc7c2583739dc2437acc1503fb4e1123532
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));