blob: dbc0dfff71ba0e346a328fff50587b2cede81732 [file] [log] [blame]
// { 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;
}