• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #define SMAX __INT_MAX__
2 #define SMIN (-__INT_MAX__-1)
3 
lt_smax(int a)4 int lt_smax(int a) { return (a <  SMAX) == (a != SMAX); }
ge_smax(int a)5 int ge_smax(int a) { return (a >= SMAX) == (a == SMAX); }
6 
le_smin(int a)7 int le_smin(int a) { return (a <= SMIN) == (a == SMIN); }
gt_smin(int a)8 int 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