diff options
author | Clyybber <darkmine956@gmail.com> | 2021-03-11 13:43:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 20:43:45 +0800 |
commit | 3ce27511adac12785b51ecc33dc9d2a2fcd2f0b8 (patch) | |
tree | 81f0c8989d9e7c91ae2671e57c23bcf4971a9677 /tests/destructor/t16607.nim | |
parent | ddc5f8fbcfd55aa74a2fc7b13b287262780ba58e (diff) | |
download | Nim-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.nim | 24 |
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() |