summaryrefslogtreecommitdiff
path: root/tests/genie/try-except-finally.gs
blob: 038995c58d8b1af5df4c6dbae43f9d486e489191 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
def test() raises IOError, Error
	raise new IOError.FAILED( "failed" )

init
	a:int = 0
	try
		a++
		test()
	except e:Error
		a++
	finally
		a++
	assert( a == 3 )