0201-cpp.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
       ---
       0201-cpp.c (407B)
       ---
            1 /* taken from ISO/IEC 9899:1999 Section 6.10.3.5 p7 */
            2 
            3 #define t(x,y,z) x ## y ## z
            4 
            5 int j[] = { t(1,2,3), t(,4,5), t(6,,7), t(8,9,),
            6      t(10,,), t(,11,), t(,,12), t(,,) };
            7 
            8 int
            9 main()
           10 {
           11         if (j[0] != 123)
           12                 return 1;
           13         if (j[1] != 45)
           14                 return 2;
           15         if (j[2] != 67)
           16                 return 3;
           17         if (j[3] != 89)
           18                 return 4;
           19         if (j[4] != 10)
           20                 return 5;
           21         if (j[5] != 11)
           22                 return 6;
           23         if (j[6] != 12)
           24                 return 7;
           25         return 0;
           26 }