Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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'" }
}