1*c85f09ccSJohn Levon enum n { 2*c85f09ccSJohn Levon NA, 3*c85f09ccSJohn Levon NB = 1L, 4*c85f09ccSJohn Levon NC = 1UL, 5*c85f09ccSJohn Levon ND = 1LL, 6*c85f09ccSJohn Levon NE = 1ULL, 7*c85f09ccSJohn Levon NF = -1, 8*c85f09ccSJohn Levon NG = -1L, 9*c85f09ccSJohn Levon NH = -1LL, 10*c85f09ccSJohn Levon }; 11*c85f09ccSJohn Levon _Static_assert(sizeof(enum n) == sizeof(int), "+-1"); 12*c85f09ccSJohn Levon 13*c85f09ccSJohn Levon enum m { 14*c85f09ccSJohn Levon MA = 0L, 15*c85f09ccSJohn Levon MB = 1L, 16*c85f09ccSJohn Levon MG = -1L, 17*c85f09ccSJohn Levon }; 18*c85f09ccSJohn Levon _Static_assert(sizeof(enum m) == sizeof(int), "+-1L"); 19*c85f09ccSJohn Levon 20*c85f09ccSJohn Levon enum p { 21*c85f09ccSJohn Levon PA = 0UL, 22*c85f09ccSJohn Levon PB = 1UL, 23*c85f09ccSJohn Levon }; 24*c85f09ccSJohn Levon _Static_assert(sizeof(enum p) == sizeof(int), "UL"); 25*c85f09ccSJohn Levon 26*c85f09ccSJohn Levon /* 27*c85f09ccSJohn Levon * check-name: enum-base-type 28*c85f09ccSJohn Levon * check-command: sparse -m64 $file 29*c85f09ccSJohn Levon */ 30