xref: /freebsd/contrib/one-true-awk/testdir/t.exit1 (revision d5b0e70f7e04d971691517ce1304d86a1e367e2e)
1BEGIN {
2	print "this is before calling myabort"
3	myabort(1)
4	print "this is after calling myabort"
5}
6function myabort(n) {
7	print "in myabort - before exit", n
8	exit 2
9	print "in myabort - after exit"
10}
11END {
12	print "into END"
13	myabort(2)
14	print "should not see this"
15}
16