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