From 9a9005622b9aec69f48fe80344fc4d500862c578 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 24 Sep 2018 12:25:40 +0200 Subject: make t7346 work again --- tests/destructor/t7346.nim | 10 ++++++++++ tests/seq/t7346.nim | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 tests/destructor/t7346.nim delete mode 100644 tests/seq/t7346.nim (limited to 'tests') diff --git a/tests/destructor/t7346.nim b/tests/destructor/t7346.nim new file mode 100644 index 000000000..ef2fd5b79 --- /dev/null +++ b/tests/destructor/t7346.nim @@ -0,0 +1,10 @@ +when not defined(nimNewRuntime): + {.error: "This bug could only be reproduced with --newruntime".} + +type + Obj = object + a: int + +proc `=`(a: var Obj, b: Obj) = discard + +let a: seq[Obj] = @[] \ No newline at end of file diff --git a/tests/seq/t7346.nim b/tests/seq/t7346.nim deleted file mode 100644 index ef2fd5b79..000000000 --- a/tests/seq/t7346.nim +++ /dev/null @@ -1,10 +0,0 @@ -when not defined(nimNewRuntime): - {.error: "This bug could only be reproduced with --newruntime".} - -type - Obj = object - a: int - -proc `=`(a: var Obj, b: Obj) = discard - -let a: seq[Obj] = @[] \ No newline at end of file -- cgit 1.4.1-2-gfad0