summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/destructor/tsimpletable.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/destructor/tsimpletable.nim b/tests/destructor/tsimpletable.nim
index 36546b9f6..07efc86d9 100644
--- a/tests/destructor/tsimpletable.nim
+++ b/tests/destructor/tsimpletable.nim
@@ -20,5 +20,17 @@ proc main =
 
 main()
 
+# bug #11563
+type
+  MyTypeType = enum
+    Zero, One
+  MyType = object
+    case kind: MyTypeType
+    of Zero:
+      s*: seq[MyType]
+    of One:
+      x*: int
+var t: MyType
+
 let (a, d) = allocCounters()
 discard cprintf("%ld %ld  new: %ld\n", a, d, allocs)