From 045e026d0ee4e6decc4f22f1f9cbb0bdd8bc3b45 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 15 Apr 2019 17:57:59 +0200 Subject: dfa.nim: track object/tuple field accesses more precisely; sink(o.x); sink(o.y) needs to compile; activate the tuple unpacking transf.nim bugfix --- tests/destructor/t6434.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/destructor/t6434.nim') diff --git a/tests/destructor/t6434.nim b/tests/destructor/t6434.nim index 5f5fbedfa..4e78d0469 100644 --- a/tests/destructor/t6434.nim +++ b/tests/destructor/t6434.nim @@ -23,5 +23,5 @@ proc test(): auto = var (a, b, _) = test() -doAssert: assign_counter == 0 -doAssert: sink_counter == 9 \ No newline at end of file +doAssert assign_counter == 0 +doAssert sink_counter == 12 # + 3 because of the conservative tuple unpacking transformation -- cgit 1.4.1-2-gfad0