Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
incomplete2.C
blob: bfaf6be310c5f867bcbe528faa0244094c1ffbd9 [
file
] [
log
] [
blame
]
// PR c++/33501
// { dg-do compile }
class
A
;
// { dg-message "forward declaration" }
int
f
(
A
);
// { dg-message "initializing" }
const
A
&
make
();
int
main
()
{
return
f
(
make
());
// { dg-error "invalid use of incomplete type" }
}