aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C
blob: 7a77d6154d36353bb132244a3c1134ac8dff5b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do run { xfail alpha*-dec-osf* *-*-hms i?86-pc-cygwin *-*-coff hppa2*-hp-hpux11* } }
// Test that attributes weak and alias coexist.

extern "C" {
  void f () __attribute__((weak, alias ("_f")));
  void _f () { }
}

int main ()
{
  f ();
}