(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
incomplete2.C
// 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" }
}