xref: /freebsd/bin/sh/tests/expansion/arith3.0 (revision 55141f2c8991b2a6adbf30bb0fe3e6cbc303f06d)
1
2failures=0
3
4check() {
5	if [ $(($1)) != $2 ]; then
6		failures=$((failures+1))
7		echo "For $1, expected $2 actual $(($1))"
8	fi
9}
10
11check "1 << 1 + 1 | 1" 5
12
13exit $((failures != 0))
14