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