busybox/testsuite/bc_misc2.bc
<<
>>
Prefs
   1define x() {
   2"x"
   3return ( 1 )
   4}
   5define y() {
   6"y"
   7return (2)
   8}
   9define z() {
  10"z"
  11return (3)
  12}
  13
  14if ( x() == y() ) {1}
  151
  16if ( x() <= y() ) {2}
  17if ( y() >= x() ) {3}
  18if ( x() != y() ) {4}
  19if ( x() < y() ) {5}
  20if ( y() > x() ) {6}
  21
  22if ( x() == z() ) {11}
  2311
  24if ( x() <= z() ) {12}
  25if ( z() >= x() ) {13}
  26if ( x() != z() ) {14}
  27if ( x() < z() ) {15}
  28if ( z() > x() ) {16}
  29
  30x = -10
  31while (x <= 0) {
  32        x
  33        if (x == -5) break;
  34        x += 1
  35}
  36
  37define u() {
  38        auto a[];
  39        return a[0]
  40}
  41
  42u()
  43
  44if (x == -4) x else x - 4
  45