summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/weak/weak-6.c
blob: 6fa0d66ff2dfc6489790cb801edb237958d635b0 (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 "function pointer" "pointer conversion" { target *-*-* } 5 } */
#pragma weak foo