diff options
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-x | testsuite/awk.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index 03fedf771..0db6a26e4 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -280,6 +280,18 @@ testing "awk 'delete a[v--]' evaluates v-- once" \ | |||
280 | " \ | 280 | " \ |
281 | "" "" | 281 | "" "" |
282 | 282 | ||
283 | testing "awk func arg parsing 1" \ | ||
284 | "awk 'func f(,) { }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" | ||
285 | |||
286 | testing "awk func arg parsing 2" \ | ||
287 | "awk 'func f(a,,b) { }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" | ||
288 | |||
289 | testing "awk func arg parsing 3" \ | ||
290 | "awk 'func f(a,) { }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" | ||
291 | |||
292 | testing "awk func arg parsing 4" \ | ||
293 | "awk 'func f(a b) { }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" | ||
294 | |||
283 | testing "awk handles empty ()" \ | 295 | testing "awk handles empty ()" \ |
284 | "awk 'BEGIN {print()}' 2>&1" "awk: cmd. line:1: Empty sequence\n" "" "" | 296 | "awk 'BEGIN {print()}' 2>&1" "awk: cmd. line:1: Empty sequence\n" "" "" |
285 | 297 | ||