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

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

int main ()
{
  f ();
}