Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
error40.C
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'" }
}