0018-voidparam.c - scc - simple c99 compiler
 (HTM) git clone git://git.simple-cc.org/scc
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
       0018-voidparam.c (439B)
       ---
            1 /*
            2 PATTERN:
            3 0018-voidparam.c:12: error: 'void' must be the only parameter
            4 0018-voidparam.c:18: error: 'void' must be the only parameter
            5 0018-voidparam.c:30: error: a named argument is requiered before '...'
            6 0018-voidparam.c:30: error: 'void' must be the only parameter
            7 .
            8 */
            9 
           10 
           11 int
           12 a(void, int i)
           13 {
           14         return i;
           15 }
           16 
           17 int
           18 b(int i, void)
           19 {
           20         return i;
           21 }
           22 
           23 int
           24 c(void, void)
           25 {
           26         return 0;
           27 }
           28 
           29 int
           30 d(void, ...)
           31 {
           32         return 0;
           33 }
           34 
           35 int
           36 main()
           37 {
           38         return 0;
           39 }