github.com/benhoyt/goawk@v1.8.1/testdata/t.exit1 (about)

     1  BEGIN {
     2  	print "this is before calling myabort"
     3  	myabort(1)
     4  	print "this is after calling myabort"
     5  } 
     6  function myabort(n) {
     7  	print "in myabort - before exit", n
     8  	exit 2
     9  	print "in myabort - after exit"
    10  }
    11  END {
    12  	print "into END"
    13  	myabort(2)
    14  	print "should not see this"
    15  }