diff options
Diffstat (limited to 'test/libjulia/Rematerialiser.cpp')
-rw-r--r-- | test/libjulia/Rematerialiser.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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( |