OSDN Git Service

PR c++/21908
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Oct 2005 20:32:59 +0000 (20:32 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Oct 2005 20:32:59 +0000 (20:32 +0000)
* g++.dg/parse/error28.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105637 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/error28.C [new file with mode: 0644]

index 860f927..3685b6c 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-19  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/21908
+       * g++.dg/parse/error28.C: New test.
+
 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        * gcc.dg/profile-generate-2.c: New test.
diff --git a/gcc/testsuite/g++.dg/parse/error28.C b/gcc/testsuite/g++.dg/parse/error28.C
new file mode 100644 (file)
index 0000000..046cc50
--- /dev/null
@@ -0,0 +1,10 @@
+// PR c++/21908
+
+struct virt { virt () {} virt (int i) {} };
+struct der : public virtual virt { // { dg-error "der" }
+  der (int i) : virt(i) {} // { dg-error "der" }
+};
+struct top : public der { 
+  // { dg-error "der\\(\\)" "" { target *-*-* } 9 } 
+  top () {} // { dg-bogus "der\\(const" }
+};