re PR c++/21908 (poor diagnostic with vitrual base classes)
PR c++/21908 * g++.dg/parse/error28.C: New test. From-SVN: r105637
This commit is contained in:
parent
6fa05db65c
commit
1d61579ed2
@ -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.
|
||||
|
10
gcc/testsuite/g++.dg/parse/error28.C
Normal file
10
gcc/testsuite/g++.dg/parse/error28.C
Normal file
@ -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" }
|
||||
};
|
Loading…
Reference in New Issue
Block a user