diff options
Diffstat (limited to 'tests/run/tcontinuexc.nim')
-rw-r--r-- | tests/run/tcontinuexc.nim | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/run/tcontinuexc.nim b/tests/run/tcontinuexc.nim deleted file mode 100644 index f618abc14..000000000 --- a/tests/run/tcontinuexc.nim +++ /dev/null @@ -1,30 +0,0 @@ -discard """ - file: "tcontinuexc.nim" - outputsub: "ECcaught" - exitcode: "1" -""" -type - ESomething = object of E_Base - ESomeOtherErr = object of E_Base - -proc genErrors(s: string) = - if s == "error!": - raise newException(ESomething, "Test") - else: - raise newException(EsomeotherErr, "bla") - -try: - for i in 0..3: - try: - genErrors("error!") - except ESomething: - stdout.write("E") - stdout.write("C") - raise newException(EsomeotherErr, "bla") -finally: - echo "caught" - -#OUT ECcaught - - - |