diff options
Diffstat (limited to 'testsuite')
-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" \ "awk '{ for() }' 2>&1" "awk: cmd. line:1: Unexpected token\n" "" "" # testing "description" "command" "result" "infile" "stdin" +testing 'awk negative field access' \ + 'awk 2>&1 -- '\''{ $(-1) }'\' \ + "awk: cmd. line:1: Access to negative field\n" \ + '' \ + 'anything' + exit $FAILCOUNT |