1 #define SMAX __INT_MAX__ 2 #define SMIN (-__INT_MAX__-1) 3 lt_smax(int a)4int lt_smax(int a) { return (a < SMAX) == (a != SMAX); } ge_smax(int a)5int ge_smax(int a) { return (a >= SMAX) == (a == SMAX); } 6 le_smin(int a)7int le_smin(int a) { return (a <= SMIN) == (a == SMIN); } gt_smin(int a)8int gt_smin(int a) { return (a > SMIN) == (a != SMIN); } 9 10 /* 11 * check-name: canonical-cmps-minmax 12 * check-command: test-linearize -Wno-decl $file 13 * 14 * check-output-ignore 15 * check-output-returns: 1 16 */ 17