summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/weak/weak-7.c
blob: 031f830783f6db335af12790c8ed72243aad7252 (plain)
1
2
3
4
5
6
/* { dg-do compile } */
/* { dg-require-weak "" } */

extern void * foo (void);
void * foo (void) { return (void *)foo; } /* { dg-error "precede" } */
extern void * foo (void) __attribute__((weak));