summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/error40.C
blob: 643f1f56c53b6f91e3a0e86db0b4ea663ecff008 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/31489

class foo;   // { dg-message "'class foo'" }
struct bar;  // { dg-message "'struct bar'" }

int main()
{
  foo* f = new foo; // { dg-error "'class foo'" }
  bar* b = new bar; // { dg-error "'struct bar'" }
}