Home
       0018-voidparam.c - scc - simple c99 compiler
  HTML git clone git://git.simple-cc.org/scc
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
       0018-voidparam.c (438B)
       ---
            1 /*
            2 PATTERN:
            3 0018-voidparam.c:9: error: 'void' must be the only parameter
            4 0018-voidparam.c:15: error: 'void' must be the only parameter
            5 0018-voidparam.c:27: error: a named argument is requiered before '...'
            6 0018-voidparam.c:27: 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 }