diff options
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-x | testsuite/awk.tests | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index b5008290f..87f6b5007 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -390,5 +390,13 @@ testing 'awk negative field access' \ | |||
390 | '' \ | 390 | '' \ |
391 | 'anything' | 391 | 'anything' |
392 | 392 | ||
393 | # was misinterpreted as (("str"++) i) instead of ("str" (++i)) | ||
394 | # (and was executed: "str"++ is "0", thus concatenating "0" and "1"): | ||
395 | testing 'awk do not allow "str"++' \ | ||
396 | 'awk -v i=1 "BEGIN {print \"str\" ++i}"' \ | ||
397 | "str2\n" \ | ||
398 | '' \ | ||
399 | 'anything' | ||
400 | |||
393 | 401 | ||
394 | exit $FAILCOUNT | 402 | exit $FAILCOUNT |