aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-03 17:47:18 +0900
committernsfisis <nsfisis@gmail.com>2025-05-03 17:47:18 +0900
commitfa1b51ea49e2902fcf778c2547f9f332640320f1 (patch)
tree894cea5b5fb7ea5a906236b0c3cf3cb3d4e4b041 /tests
parent7ed42654c3205657a86fa5e914c75a0eeb673f8e (diff)
downloadP4Dcc-fa1b51ea49e2902fcf778c2547f9f332640320f1.tar.gz
P4Dcc-fa1b51ea49e2902fcf778c2547f9f332640320f1.tar.zst
P4Dcc-fa1b51ea49e2902fcf778c2547f9f332640320f1.zip
for stmt
Diffstat (limited to 'tests')
-rw-r--r--tests/011.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/011.sh b/tests/011.sh
new file mode 100644
index 0000000..f9ee216
--- /dev/null
+++ b/tests/011.sh
@@ -0,0 +1,14 @@
+set -e
+
+bash ../../test_exit_code.sh 45 <<'EOF'
+int main() {
+ int i;
+ int ret;
+ i = 0;
+ ret = 0;
+ for (i = 0; i < 10; i = i + 1) {
+ ret = ret + i;
+ }
+ return ret;
+}
+EOF