• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download

lt_p(int a)1 _Bool lt_p(int a) { return (a >  0) == (a >=  1); }
ge_p(int a)2 _Bool ge_p(int a) { return (a <= 0) == (a <   1); }
3 
lt_m(int a)4 _Bool lt_m(int a) { return (a <  0) == (a <= -1); }
ge_m(int a)5 _Bool ge_m(int a) { return (a >= 0) == (a >  -1); }
6 
lt_x(int a)7 _Bool lt_x(int a) { return (a <= 1234) == (a < 1235); }
ge_x(int a)8 _Bool ge_x(int a) { return (a >= 1234) == (a > 1233); }
9 
10 /*
11  * check-name: canonical-cmps
12  * check-command: test-linearize -Wno-decl $file
13  *
14  * check-output-ignore
15  * check-output-returns: 1
16  */
17