diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:55:10 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 14:55:10 +0300 |
commit | 00ef0423acd97cb964a2bae54c93a03a8ab50e5e (patch) | |
tree | 2864426773f537f912db1bd716c27b713c5f7dcf /test/fcall_exit2.awk | |
parent | 3ba50a15ebd976f7a88393e2e45dc14b6478b9a9 (diff) | |
download | gawk-00ef0423acd97cb964a2bae54c93a03a8ab50e5e.tar.gz |
Move to 3.1.8.gawk-3.1.8
Diffstat (limited to 'test/fcall_exit2.awk')
-rw-r--r-- | test/fcall_exit2.awk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/fcall_exit2.awk b/test/fcall_exit2.awk new file mode 100644 index 00000000..cbf20820 --- /dev/null +++ b/test/fcall_exit2.awk @@ -0,0 +1,25 @@ +#!/bin/awk -f + +function crash () { + exit 1 +} + +function true (a,b,c) { + return 1 +} + +BEGIN { + if (ARGV[2] == 1) { + print "<BEGIN CONTEXT> true(1, crash()) => crash properly." + true(1, crash()) + # ADR: Added: + delete ARGV[2] + } +} + +{ + print "<RULE CONTEXT> true(1, crash()) => do not crash properly." + true(1, crash()) +} + +# FdF |