summary refs log tree commit diff stats
path: root/tests/run
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-11-04 18:09:15 +0100
committerAraq <rumpf_a@web.de>2012-11-04 18:09:15 +0100
commit6dd2c2d7670b11aa2155f41e1309dad011456140 (patch)
tree341a07cc2b200cac0e241a84634485c0354ae6a4 /tests/run
parent9fea5b8f69758e9cb1cd2043d55fae66f3987df7 (diff)
downloadNim-6dd2c2d7670b11aa2155f41e1309dad011456140.tar.gz
exception tracking should work
Diffstat (limited to 'tests/run')
-rwxr-xr-xtests/run/tmultim4.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run/tmultim4.nim b/tests/run/tmultim4.nim
index 6bb7970dd..d824086b2 100755
--- a/tests/run/tmultim4.nim
+++ b/tests/run/tmultim4.nim
@@ -5,11 +5,13 @@ discard """
 type
   Test = object of TObject
 
-method doMethod(a: ref TObject) =
+method doMethod(a: ref TObject) {.raises: [EIO].} =
   quit "override"
 
 method doMethod(a: ref Test) =
   echo "hello"
+  if a == nil:
+    raise newException(EIO, "arg")
 
 proc doProc(a: ref Test) =
   echo "hello"