#  test that stop sets the exit status correctly
#  test that final is executed only if stop code is 0

resource foo ()

	int  n 
	if (numargs() < 1) {
		stop }
	getarg (1, n)
	stop (n)
	write ("didn't stop")

final {
	write ("final here")
}


end foo
