summary refs log tree commit diff
path: root/bin/1sh/tests/expansion/arith14.0
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-09 04:03:18 -0400
committerJune McEnroe <june@causal.agency>2020-03-09 04:03:18 -0400
commit25417843af4872fc58ea6d8edc0c0713a6337bde (patch)
treec9885a49e3961c510eef155515aeb11374c24e30 /bin/1sh/tests/expansion/arith14.0
parentImport /usr/src/bin/sh from FreeBSD 12.1-RELEASE (diff)
downloadsrc-25417843af4872fc58ea6d8edc0c0713a6337bde.tar.gz
src-25417843af4872fc58ea6d8edc0c0713a6337bde.zip
Remove extraneous files from sh sources
Diffstat (limited to '')
-rw-r--r--bin/1sh/tests/expansion/arith14.040
1 files changed, 0 insertions, 40 deletions
diff --git a/bin/1sh/tests/expansion/arith14.0 b/bin/1sh/tests/expansion/arith14.0
deleted file mode 100644
index c6f84701..00000000
--- a/bin/1sh/tests/expansion/arith14.0
+++ /dev/null
@@ -1,40 +0,0 @@
-# $FreeBSD: releng/12.1/bin/sh/tests/expansion/arith14.0 270029 2014-08-15 22:36:41Z jilles $
-# Check that <</>> use the low bits of the shift count.
-
-if [ $((1<<16<<16)) = 0 ]; then
-	width=32
-elif [ $((1<<32<<32)) = 0 ]; then
-	width=64
-elif [ $((1<<64<<64)) = 0 ]; then
-	width=128
-elif [ $((1<<64>>64)) = 1 ]; then
-	# Integers are wider than 128 bits; assume arbitrary precision.
-	# Nothing to test here.
-	exit 0
-else
-	echo "Cannot determine integer width"
-	exit 2
-fi
-
-twowidth=$((width * 2))
-j=43 k=$((1 << (width - 2))) r=0
-
-i=0
-while [ $i -lt $twowidth ]; do
-	if [ "$((j << i))" != "$((j << (i + width)))" ]; then
-		echo "Problem with $j << $i"
-		r=2
-	fi
-	i=$((i + 1))
-done
-
-i=0
-while [ $i -lt $twowidth ]; do
-	if [ "$((k >> i))" != "$((k >> (i + width)))" ]; then
-		echo "Problem with $k >> $i"
-		r=2
-	fi
-	i=$((i + 1))
-done
-
-exit $r