diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-10-19 20:32:59 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-10-19 20:32:59 +0000 |
commit | 1d61579ed287987eb72453659f3817d33fc4d40f (patch) | |
tree | 3afab3efd08c8591d5bda6175609a70636b35d69 /gcc/testsuite/g++.dg | |
parent | 6fa05db65c8202c23d3370feb72fc41472498e82 (diff) | |
download | gcc-1d61579ed287987eb72453659f3817d33fc4d40f.zip gcc-1d61579ed287987eb72453659f3817d33fc4d40f.tar.gz gcc-1d61579ed287987eb72453659f3817d33fc4d40f.tar.bz2 |
re PR c++/21908 (poor diagnostic with vitrual base classes)
PR c++/21908
* g++.dg/parse/error28.C: New test.
From-SVN: r105637
Diffstat (limited to 'gcc/testsuite/g++.dg')
-rw-r--r-- | gcc/testsuite/g++.dg/parse/error28.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/parse/error28.C b/gcc/testsuite/g++.dg/parse/error28.C new file mode 100644 index 0000000..046cc50 --- /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" } +}; |