diff options
Diffstat (limited to 'tests/accept/run/twrongexc.nim')
-rwxr-xr-x | tests/accept/run/twrongexc.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/accept/run/twrongexc.nim b/tests/accept/run/twrongexc.nim index 8ba07bbce..592693769 100755 --- a/tests/accept/run/twrongexc.nim +++ b/tests/accept/run/twrongexc.nim @@ -1,6 +1,12 @@ +discard """ + file: "twrongexc.nim" + output: "Error: unhandled exception [EInvalidValue]" +""" try: raise newException(EInvalidValue, "") except EOverflow: echo("Error caught") + + |