1// { dg-do run { xfail alpha*-dec-osf* *-*-hms i?86-pc-cygwin *-*-coff } }
2// Test that attributes weak and alias coexist.
3// { dg-require-weak "" }
4// { dg-require-alias "" }
5
6extern "C" {
7  void _f () { }
8  void f () __attribute__((weak, alias ("_f")));
9}
10
11int main ()
12{
13  f ();
14}
15