From 00ef0423acd97cb964a2bae54c93a03a8ab50e5e Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 16 Jul 2010 14:55:10 +0300 Subject: Move to 3.1.8. --- test/fcall_exit2.awk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/fcall_exit2.awk (limited to 'test/fcall_exit2.awk') 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 " true(1, crash()) => crash properly." + true(1, crash()) + # ADR: Added: + delete ARGV[2] + } +} + +{ + print " true(1, crash()) => do not crash properly." + true(1, crash()) +} + +# FdF -- cgit v1.2.3