aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-03 14:56:33 +0900
committernsfisis <nsfisis@gmail.com>2025-05-03 14:56:33 +0900
commitccfab25b9cb3341fe150bb7aae16e3f46cc6ea99 (patch)
treee31fe090628938bff111e0d905b92a119c1b47e2 /tests
parente07db70ea48583cac2ab8517586b6a25316cb8ca (diff)
downloadP4Dcc-ccfab25b9cb3341fe150bb7aae16e3f46cc6ea99.tar.gz
P4Dcc-ccfab25b9cb3341fe150bb7aae16e3f46cc6ea99.tar.zst
P4Dcc-ccfab25b9cb3341fe150bb7aae16e3f46cc6ea99.zip
unary minus
Diffstat (limited to 'tests')
-rw-r--r--tests/005.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/005.sh b/tests/005.sh
new file mode 100644
index 0000000..1b4611a
--- /dev/null
+++ b/tests/005.sh
@@ -0,0 +1,7 @@
+set -e
+
+bash ../../test_exit_code.sh 30 <<'EOF'
+int main() {
+ return (-10 + 20 * -3) + 100;
+}
+EOF