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" }
}