summaryrefslogtreecommitdiff
path: root/testsuite/awk.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-xtestsuite/awk.tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index adab4ae..82937bc 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -316,6 +316,9 @@ testing "awk continue" \
"" \
'BEGIN { if (1) continue; else a = 1 }'
+testing "awk handles invalid for loop" \
+ "awk '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" ""
+
# testing "description" "command" "result" "infile" "stdin"
exit $FAILCOUNT