From 773be40c19a2c3b72a5cf743e86e150533e0f25f Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 2 Feb 2018 15:24:38 +0100 Subject: Reassign test for remat. --- test/libjulia/Rematerialiser.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/libjulia/Rematerialiser.cpp b/test/libjulia/Rematerialiser.cpp index d6cc0dae..fce287a5 100644 --- a/test/libjulia/Rematerialiser.cpp +++ b/test/libjulia/Rematerialiser.cpp @@ -74,6 +74,14 @@ BOOST_AUTO_TEST_CASE(expression) ); } +BOOST_AUTO_TEST_CASE(reassign) +{ + CHECK( + "{ let a := extcodesize(0) let b := a let c := b a := 2 let d := add(b, c) pop(a) pop(b) pop(c) pop(d) }", + "{ let a := extcodesize(0) let b := a let c := a a := 2 let d := add(b, c) pop(2) pop(b) pop(c) pop(add(b, c)) }" + ); +} + BOOST_AUTO_TEST_CASE(non_movable_instr) { CHECK( -- cgit v1.2.3