Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / incomplete2.C
blobbfaf6be310c5f867bcbe528faa0244094c1ffbd9
1 // PR c++/33501
2 // { dg-do compile }
4 class A;        // { dg-message "forward declaration" }
6 int f (A);                      // { dg-message "initializing" }
7 const A &make ();
9 int
10 main ()
12   return f (make ());   // { dg-error "invalid use of incomplete type" }