blob: 643f1f56c53b6f91e3a0e86db0b4ea663ecff008 [file] [log] [blame]
// 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'" }
}