modernc.org/cc@v1.0.1/testdata/tcc-0.9.26/tests/tests2/17_enum.c (about)

     1  #include <stdio.h>
     2  
     3  enum fred
     4  {
     5     a,
     6     b,
     7     c,
     8     d,
     9     e = 54,
    10     f = 73,
    11     g,
    12     h
    13  };
    14  
    15  int main()
    16  {
    17     enum fred frod;
    18  
    19     printf("%d %d %d %d %d %d %d %d\n", a, b, c, d, e, f, g, h);
    20     /* printf("%d\n", frod); */
    21     frod = 12;
    22     printf("%d\n", frod);
    23     frod = e;
    24     printf("%d\n", frod);
    25  
    26     return 0;
    27  }
    28  
    29  /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/