OSDN Git Service

* g++.old-deja/g++.other/eh4.C: Fix typo.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / incomplete.C
1 // Build don't link:
2
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.
6
7 struct S; // ERROR - forward ref
8
9 void f(S);            // ok
10 void f(S s) {}        // ERROR - incomplete type
11 void j (int){};       // ok
12 void k (){};          // ok
13 void q (void){}       // ok
14 void t (void t);      // ERROR - incomplete
15 void r (void, ...);   // ERROR - incomplete
16 void s (void const);  // ERROR - incomplete