summary refs log tree commit diff stats
path: root/tests/run/texcpt1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/texcpt1.nim')
-rw-r--r--tests/run/texcpt1.nim30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/run/texcpt1.nim b/tests/run/texcpt1.nim
deleted file mode 100644
index ec74c9470..000000000
--- a/tests/run/texcpt1.nim
+++ /dev/null
@@ -1,30 +0,0 @@
-discard """
-  outputsub: "-6"
-"""
-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")
-
-proc raiseBla(): int =
-  try:
-    genErrors("errssor!")
-  except ESomething:
-    echo("Error happened")
-  except:
-    raise
-
-proc blah(): int =
-  try:
-    result = raiseBla()
-  except ESomeOtherErr:
-    result = -6
-
-echo blah()
-
-