2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / warn / weak1.C
blobdbc0dfff71ba0e346a328fff50587b2cede81732
1 // { dg-do run }
2 // { dg-do compile { target *-*-coff i?86-pc-cygwin } }
3 // { dg-warning "weak declaration" "COFF format does not support weak" { target *-*-coff i?86-pc-cygwin powerpc-ibm-aix4* rs6000-ibm-aix4* } 5 }
5 extern void foo (void) __attribute__ ((weak));
7 int
8 main ()
10   if (&foo)
11     foo ();
13   return 0;