xref: /freebsd/contrib/one-true-awk/testdir/t.exit1 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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