1 enum i { I = 1 }; 2 _Static_assert(sizeof(enum i) == sizeof(int), "int"); 3 enum u { U = 1U }; 4 _Static_assert(sizeof(enum u) == sizeof(int), "uint"); 5 6 enum l { L = 1L }; 7 _Static_assert(sizeof(enum l) == sizeof(int), "long"); 8 enum m { M = 1UL }; 9 _Static_assert(sizeof(enum m) == sizeof(int), "ulong"); 10 11 enum n { N = 1LL }; 12 _Static_assert(sizeof(enum n) == sizeof(int), "llong"); 13 enum o { O = 1ULL }; 14 _Static_assert(sizeof(enum o) == sizeof(int), "ullong"); 15 16 17 enum mi { MI = -1 }; 18 _Static_assert(sizeof(enum i) == sizeof(int), "int"); 19 20 enum ml { ML = -1L }; 21 _Static_assert(sizeof(enum l) == sizeof(int), "long"); 22 23 enum mn { MN = -1LL }; 24 _Static_assert(sizeof(enum n) == sizeof(int), "llong"); 25 26 27 /* 28 * check-name: enum-min-size 29 */ 30