summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tests/destructor/t16607.nim24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/destructor/t16607.nim b/tests/destructor/t16607.nim
deleted file mode 100644
index 5cc9d4a08..000000000
--- a/tests/destructor/t16607.nim
+++ /dev/null
@@ -1,24 +0,0 @@
-discard """
-  matrix: "--gc:refc; --gc:arc"
-"""
-
-# bug #16607
-
-type
-  O {.requiresInit.} = object
-    initialized: bool
-
-proc `=destroy`(o: var O) =
-  doAssert o.initialized, "O was destroyed before initialization!"
-
-proc initO(): O =
-  O(initialized: true)
-
-proc pair(): tuple[a, b: O] =
-  result.a = initO()
-  result.b = initO()
-
-proc main() =
-  discard pair()
-
-main()
blame/immutable-error.mu?h=main&id=ef7d834fdd826977cd8d43253052a7b8e1c5aa72'>^
f8a4a457 ^

1
2
3
4
5
6
7
8
9
10
11
12
13