From 971941b3f6402665662d85eb9b31060f0ae230fb Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 30 Apr 2018 21:23:08 +0100 Subject: Update source location test expectations --- test/libsolidity/Assembly.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index 77ca363a..7b3df043 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -158,8 +158,9 @@ BOOST_AUTO_TEST_CASE(location_test) } )"; AssemblyItems items = compileContract(sourceCode); + bool hasShifts = dev::test::Options::get().evmVersion().hasBitwiseShifting(); vector locations = - vector(24, SourceLocation(2, 75, make_shared(""))) + + vector(hasShifts ? 23 : 24, SourceLocation(2, 75, make_shared(""))) + vector(2, SourceLocation(20, 72, make_shared(""))) + vector(1, SourceLocation(8, 17, make_shared("--CODEGEN--"))) + vector(3, SourceLocation(5, 7, make_shared("--CODEGEN--"))) + @@ -172,8 +173,6 @@ BOOST_AUTO_TEST_CASE(location_test) vector(1, SourceLocation(65, 67, make_shared(""))) + vector(2, SourceLocation(58, 67, make_shared(""))) + vector(2, SourceLocation(20, 72, make_shared(""))); - - checkAssemblyLocations(items, locations); } -- cgit v1.2.3