diff options
Diffstat (limited to 'testdir/T.misc')
-rwxr-xr-x | testdir/T.misc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testdir/T.misc b/testdir/T.misc index f12d459..ad34ab8 100755 --- a/testdir/T.misc +++ b/testdir/T.misc @@ -164,6 +164,10 @@ $awk 'BEGIN { unireghf() } function unireghf(hfeed) { hfeed[1] = 0 }' if test -r core; then echo 1>&2 "BAD: T.misc unireghf dropped core"; fi +echo x | $awk '/[/]/' 2>foo +grep 'nonterminated character class' foo >/dev/null || error 'BAD: T.misc nonterminated fails' +if test -r core; then echo 1>&2 "BAD: T.misc nonterminated dropped core"; fi + $awk ' function f() { return 12345 } BEGIN { printf "<%s>\n", f() } |