diff options
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-x | testsuite/awk.tests | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index ad0583afb..3933fefc9 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -339,5 +339,11 @@ testing "awk handles invalid for loop" \ | |||
339 | "awk '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" | 339 | "awk '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" |
340 | 340 | ||
341 | # testing "description" "command" "result" "infile" "stdin" | 341 | # testing "description" "command" "result" "infile" "stdin" |
342 | testing 'awk negative field access' \ | ||
343 | 'awk 2>&1 -- '\''{ $(-1) }'\' \ | ||
344 | "awk: cmd. line:1: Access to negative field\n" \ | ||
345 | '' \ | ||
346 | 'anything' | ||
347 | |||
342 | 348 | ||
343 | exit $FAILCOUNT | 349 | exit $FAILCOUNT |