blob: 9ab7552ae8396aa885e361f4a65675551065759a (
plain)
1
2
3
4
5
6
7
8
9
10
|
// PR c++/31489
class foo; // { dg-error "'class foo'" }
struct bar; // { dg-error "'struct bar'" }
int main()
{
foo* f = new foo; // { dg-error "'class foo'" }
bar* b = new bar; // { dg-error "'struct bar'" }
}
|