* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / incomplete.C
blob7f0bc9409e8fcf081590f043251558769f497c26
1 // { dg-do assemble  }
3 // gcc represents non-ellipsis parmlists by terminating them with
4 // a void parm. We need to distinguish between a parmlist of (void), and
5 // some ill-formed ones.
7 struct S; // { dg-message "" } forward ref
9 void f(S);            // ok
10 void f(S s) {}        // { dg-error "" } incomplete type
11 void j (int){}        // ok
12 void k (){}           // ok
13 void q (void){}       // ok
14 void t (void t);      // { dg-error "" } incomplete
15 void r (void, ...);   // { dg-error "" } incomplete
16 void s (void const);  // { dg-error "" } incomplete