blob: dbc0dfff71ba0e346a328fff50587b2cede81732 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-do run }
// { dg-do compile { target *-*-coff i?86-pc-cygwin } }
// { dg-warning "weak declaration" "COFF format does not support weak" { target *-*-coff i?86-pc-cygwin powerpc-ibm-aix4* rs6000-ibm-aix4* } 5 }
extern void foo (void) __attribute__ ((weak));
int
main ()
{
if (&foo)
foo ();
return 0;
}
|