OSDN Git Service

* g++.old-deja/g++.other/using5.C: New test; using decl from base
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / using5.C
diff --git a/gcc/testsuite/g++.old-deja/g++.other/using5.C b/gcc/testsuite/g++.old-deja/g++.other/using5.C
new file mode 100644 (file)
index 0000000..df610b2
--- /dev/null
@@ -0,0 +1,15 @@
+// Build don't link:
+
+// Based on bug report by Klaus-Georg Adams
+// <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+// crash test - XFAIL *-*-*
+
+struct bar {
+  typedef bar t;
+};
+
+struct foo : bar {
+  using bar::t;
+  void baz(t pos);
+};