aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorno-author <no-author@gcc.gnu.org>2005-05-10 17:43:28 +0000
committerno-author <no-author@gcc.gnu.org>2005-05-10 17:43:28 +0000
commit4fd689ee1d4515b7817d94b414f78a597bd3e71a (patch)
treedda525800af491d0d845de1c8e6ef444d7be5ec9
parent982f63d0de9916b6f937c9f587f39abc8b17c307 (diff)
This commit was manufactured by cvs2svn to create branch
'gcc-3_4-rhl-branch'. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-3_4-rhl-branch@99532 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/g++.dg/inherit/covariant13.C25
-rw-r--r--gcc/testsuite/gcc.dg/debug/pr16676.c5
2 files changed, 30 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/inherit/covariant13.C b/gcc/testsuite/g++.dg/inherit/covariant13.C
new file mode 100644
index 00000000000..af60840c818
--- /dev/null
+++ b/gcc/testsuite/g++.dg/inherit/covariant13.C
@@ -0,0 +1,25 @@
+// Copyright (C) 2004 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 8 May 2005<nathan@codesourcery.com>
+
+// Origin:Andrew Pinski: pinskia@gcc.gnu.org
+// PR 21427: ICE on valid
+
+struct B1 {
+ public:
+ virtual void foo();
+};
+
+struct B2 {
+ public:
+ virtual B2 & bar() = 0;
+};
+
+struct I : public B1, B2 {
+ public:
+ virtual ~I();
+ virtual I & bar();
+};
+
+struct D : public I {
+ virtual ~D();
+};
diff --git a/gcc/testsuite/gcc.dg/debug/pr16676.c b/gcc/testsuite/gcc.dg/debug/pr16676.c
new file mode 100644
index 00000000000..a9758858fd3
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/debug/pr16676.c
@@ -0,0 +1,5 @@
+/* { dg-do compile } */
+
+void foo (void) {
+ void nested () {}
+}