summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.ext/attrib5.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.ext/attrib5.C14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C b/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C
new file mode 100644
index 000000000..fcc3c6167
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.ext/attrib5.C
@@ -0,0 +1,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 ();
+}