blob: 6b209767b37f8c59cbde1b5c9eca61fd38f01226 (
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 } 5 }
extern void foo (void) __attribute__ ((weak));
int
main ()
{
if (&foo)
foo ();
return 0;
}
|