1 // Test that attributes weak and alias coexist.
2 // excess errors test - XFAIL alpha*-dec-osf* *-*-hms i?86-pc-cygwin *-*-coff hppa2*-hp-hpux11*
3 
4 extern "C" {
5   void f () __attribute__((weak, alias ("_f")));
_f()6   void _f () { }
7 }
8 
main()9 int main ()
10 {
11   f ();
12 }
13