summaryrefslogtreecommitdiffstats
path: root/tests/arith4.sub
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/arith4.sub10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/arith4.sub b/tests/arith4.sub
new file mode 100644
index 0000000..d74defa
--- /dev/null
+++ b/tests/arith4.sub
@@ -0,0 +1,10 @@
+x=$(( !!1 ))
+echo $x
+
+x=$(( -!+1 ))
+echo $x
+
+x=$(( +--+!!0 ))
+echo $x
+
+echo $(( !!+-+-~0 ))