]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Thu, 3 Oct 2002 06:55:01 +0000 (06:55 +0000)
committerNo Author <no-author@gcc.gnu.org>
Thu, 3 Oct 2002 06:55:01 +0000 (06:55 +0000)
'gcc-3_2-branch'.

From-SVN: r57762

gcc/testsuite/g++.dg/rtti/crash1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/meminit1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/rtti/crash1.C b/gcc/testsuite/g++.dg/rtti/crash1.C
new file mode 100644 (file)
index 0000000..eea6a39
--- /dev/null
@@ -0,0 +1,10 @@
+// { dg-do compile }
+
+// Copyright (C) 2002 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 29 Sep 2002 <nathan@codesourcery.com>
+
+// PR 7788. ICE
+
+class foo;
+extern const foo bar;
+class bar;
diff --git a/gcc/testsuite/g++.dg/template/meminit1.C b/gcc/testsuite/g++.dg/template/meminit1.C
new file mode 100644 (file)
index 0000000..90b0d7d
--- /dev/null
@@ -0,0 +1,7 @@
+template <class T >
+struct S
+{
+  S() : S() {} // { dg-error "base" }
+};
+
+S<int> s; // { dg-error "instantiated" }