aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/crash44.C13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash44.C b/gcc/testsuite/g++.old-deja/g++.pt/crash44.C
new file mode 100644
index 0000000..3e7b175
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/crash44.C
@@ -0,0 +1,13 @@
+// Build don't link:
+// Origin: Mark Mitchell <mark@codesourcery.com>
+
+// crash test - XFAIL *-*-*
+
+template <class T>
+struct S
+{
+ template <class U>
+ friend S<U>;
+};
+
+template struct S<int>;