diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 860f92784c7..3685b6cdfa0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-10-19 Mark Mitchell + + PR c++/21908 + * g++.dg/parse/error28.C: New test. + 2005-10-19 Eric Botcazou * 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 index 00000000000..046cc501f0b --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/error28.C @@ -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" } +};