summary refs log tree commit diff stats
path: root/tests/destructor/t16607.nim
diff options
context:
space:
mode:
authorClyybber <darkmine956@gmail.com>2021-03-11 13:43:45 +0100
committerGitHub <noreply@github.com>2021-03-11 20:43:45 +0800
commit3ce27511adac12785b51ecc33dc9d2a2fcd2f0b8 (patch)
tree81f0c8989d9e7c91ae2671e57c23bcf4971a9677 /tests/destructor/t16607.nim
parentddc5f8fbcfd55aa74a2fc7b13b287262780ba58e (diff)
downloadNim-3ce27511adac12785b51ecc33dc9d2a2fcd2f0b8.tar.gz
Revert "close #16607 add testcase (#17317)" (#17336)
This reverts commit 1655103d83433aa3d4c607c7477281d137d7c794.
Diffstat (limited to 'tests/destructor/t16607.nim')
-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()