1enum bound_int_max { 2 IMAX = __INT_MAX__, 3}; 4_Static_assert([typeof(IMAX)] == [int], ""); 5 6enum bound_int_maxp1 { 7 IMP1 = __INT_MAX__ + 1L, 8}; 9_Static_assert([typeof(IMP1)] == [unsigned int], ""); 10 11enum bound_int_maxm1 { 12 IMM1 = -__INT_MAX__ - 1L, 13}; 14_Static_assert([typeof(IMM1)] == [int], ""); 15 16enum bound_int_maxm2 { 17 IMM2 = -__INT_MAX__ - 2L, 18}; 19_Static_assert([typeof(IMM2)] == [long], ""); 20 21/* 22 * check-name: enum-bounds 23 * check-command: sparse -m64 $file 24 * check-assert: sizeof(long) == 8 25 */ 26