diff options
Diffstat (limited to 'tests/genie/try-except-finally.gs')
-rw-r--r-- | tests/genie/try-except-finally.gs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/genie/try-except-finally.gs b/tests/genie/try-except-finally.gs new file mode 100644 index 000000000..038995c58 --- /dev/null +++ b/tests/genie/try-except-finally.gs @@ -0,0 +1,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 ) |