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

abs0(int a)1 _Bool abs0(int a) { return (a < 0 ? -a : a) == (a >= 0 ? a : -a); }
abs1(int a)2 _Bool abs1(int a) { return (a < 0 ? -a : a) == (a >  0 ? a : -a); }
abs2(int a)3 _Bool abs2(int a) { return (a < 0 ? -a : a) == (a <= 0 ? -a : a); }
4 
5 /*
6  * check-name: canonical-abs1
7  * check-command: test-linearize -Wno-decl $file
8  *
9  * check-output-ignore
10  * check-output-returns: 1
11  */
12