scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

0041-iconst.c (212B)


      1 /*
      2 PATTERN:
      3 0041-iconst.c:16: error: 'POS2' undeclared
      4 0041-iconst.c:16: error: array index in initializer not of integer type
      5 .
      6 */
      7 
      8 enum {
      9 	POS0,
     10 	POS1,
     11 };
     12 
     13 int a[] = {
     14 	[POS0] = 1,
     15 	[POS1] = 2,
     16 	[POS2] = 3,
     17 };