diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-08-28 18:11:36 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-08-28 18:11:36 +0000 |
commit | 0078ab63c47b8d811d38d2743e3fe539f8e7de87 (patch) | |
tree | f4b3fcdd52230f1c489246b4fa2b9252db651b6f | |
parent | c296fce54ec9b26cccc73612fb6d8b3decdc49c3 (diff) | |
download | gcc-0078ab63c47b8d811d38d2743e3fe539f8e7de87.zip gcc-0078ab63c47b8d811d38d2743e3fe539f8e7de87.tar.gz gcc-0078ab63c47b8d811d38d2743e3fe539f8e7de87.tar.bz2 |
New test
From-SVN: r22067
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/crash21.C | 27 |
1 files changed, 27 insertions, 0 deletions
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 index 0000000..4944d11 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/crash21.C @@ -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; +} |