summary refs log tree commit diff stats
path: root/tests/compile/tstrace.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tstrace.nim')
-rw-r--r--tests/compile/tstrace.nim16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/compile/tstrace.nim b/tests/compile/tstrace.nim
deleted file mode 100644
index 3032a34a3..000000000
--- a/tests/compile/tstrace.nim
+++ /dev/null
@@ -1,16 +0,0 @@
-# Test the new stacktraces (great for debugging!)

-

-{.push stack_trace: on.}

-

-proc recTest(i: int) =

-  # enter

-  if i < 10:

-    recTest(i+1)

-  else: # should printStackTrace()

-    var p: ptr int = nil

-    p[] = 12

-  # leave

-

-{.pop.}

-

-recTest(0)