summary refs log tree commit diff stats
path: root/tests/vm
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-07-12 15:37:54 +0200
committerGitHub <noreply@github.com>2019-07-12 15:37:54 +0200
commit2895ad70c8e65cd6c220cf06c5e04ce7adfd29bd (patch)
tree96e5b5809a0dc9d7017c97bed16ec11fcda58512 /tests/vm
parent38b836b49e772aed38077d6aac810da183d03255 (diff)
downloadNim-2895ad70c8e65cd6c220cf06c5e04ce7adfd29bd.tar.gz
fixes tcompiletimerange [bugfix] (#11720)
Diffstat (limited to 'tests/vm')
-rw-r--r--tests/vm/tcompiletimerange.nim9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/vm/tcompiletimerange.nim b/tests/vm/tcompiletimerange.nim
index 9f4139897..cd675b4a3 100644
--- a/tests/vm/tcompiletimerange.nim
+++ b/tests/vm/tcompiletimerange.nim
@@ -1,18 +1,17 @@
 discard """
-  disabled: "true"
 """
 
 # issue #8199
 
-const rangesGCHoldEnabled = not defined(rangesDisableGCHold)
+const rangesGCHoldEnabled = true # not defined(rangesDisableGCHold)
 
 type
   # A view into immutable array
   Range*[T] {.shallow.} = object
     when rangesGCHoldEnabled:
-      gcHold: seq[T]
-    start: ptr T
-    mLen: int32
+      gcHold: seq[T] # 0
+    start: ptr T # 1
+    mLen: int32 # 2
 
 type
   BytesRange* = Range[byte]