New test
authorMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 28 Aug 1998 18:11:36 +0000 (18:11 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 28 Aug 1998 18:11:36 +0000 (18:11 +0000)
From-SVN: r22067

gcc/testsuite/g++.old-deja/g++.pt/crash21.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash21.C b/gcc/testsuite/g++.old-deja/g++.pt/crash21.C
new file mode 100644 (file)
index 0000000..4944d11
--- /dev/null
@@ -0,0 +1,27 @@
+// Build don't link:
+// Special g++ Options:
+// crash test - XFAIL
+
+class Pooled
+{
+};
+
+class RefCounted
+{
+};
+
+class BrickExpressionBase : public RefCounted, public Pooled
+{
+};
+
+template<unsigned Dim, class LHS, class RHS, class OP>
+class BrickExpression : public BrickExpressionBase
+{
+};
+
+template <unsigned Dim, class T>
+void f()
+{
+  typedef BrickExpression<Dim, T, T, T> ExprT;
+  ExprT(3).apply;
+}