aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/using5.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/using5.C')
-rw-r--r--gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/using5.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/using5.C b/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/using5.C
new file mode 100644
index 000000000..672530199
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/g++.old-deja/g++.other/using5.C
@@ -0,0 +1,15 @@
+// { dg-do assemble }
+
+// Based on bug report by Klaus-Georg Adams
+// <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+struct bar {
+ typedef bar t;
+};
+
+struct foo : bar {
+ using bar::t;
+ t field;
+ t meth();
+ void baz(t arg);
+};