OSDN Git Service

PR c++/43680
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / warn / incomplete2.C
1 // PR c++/33501
2 // { dg-do compile }
3
4 class A;        // { dg-error "forward declaration" }
5
6 int f (A);
7 const A &make ();
8
9 int
10 main ()
11 {
12   return f (make ());   // { dg-error "invalid use of incomplete type|initializing argument" }
13 }