aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/004.sh
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-03 13:59:06 +0900
committernsfisis <nsfisis@gmail.com>2025-05-03 13:59:06 +0900
commit4cdf4ddb24fb6f7d46d65dc55f44af1ff50119b5 (patch)
tree3ef370b59df5f2fdffb63f48ef2165eda894eeb2 /tests/004.sh
parent1c44079167dbac07e71e177b3ef125755c4308fc (diff)
downloadP4Dcc-4cdf4ddb24fb6f7d46d65dc55f44af1ff50119b5.tar.gz
P4Dcc-4cdf4ddb24fb6f7d46d65dc55f44af1ff50119b5.tar.zst
P4Dcc-4cdf4ddb24fb6f7d46d65dc55f44af1ff50119b5.zip
parenthesized expression
Diffstat (limited to 'tests/004.sh')
-rw-r--r--tests/004.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/004.sh b/tests/004.sh
new file mode 100644
index 0000000..b5ceb16
--- /dev/null
+++ b/tests/004.sh
@@ -0,0 +1,7 @@
+set -e
+
+bash ../../test_exit_code.sh 197 <<'EOF'
+int main() {
+ return (((3+5)/2) + (5*(9-6)) * (5+6*7)) % 256;
+}
+EOF