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