Skip to content

Commit

Permalink
Merge pull request #211 from chriseth/fix_successor
Browse files Browse the repository at this point in the history
Work around bug in MSVC/Boost for u256->unsigned conversion.
  • Loading branch information
chriseth committed Nov 16, 2015
2 parents 321b1ed + 1bdc7ee commit c881d10
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/libsolidity/SolidityOptimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,16 @@ BOOST_AUTO_TEST_CASE(store_tags_as_unions)
// BOOST_CHECK_EQUAL(2, numSHA3s);
}

BOOST_AUTO_TEST_CASE(successor_not_found_bug)
{
// This bug was caused because MSVC chose to use the u256->bool conversion
// instead of u256->unsigned
char const* sourceCode = R"(
contract greeter { function greeter() {} }
)";
compileBothVersions(sourceCode);
}

BOOST_AUTO_TEST_CASE(cse_intermediate_swap)
{
eth::KnownState state;
Expand Down

0 comments on commit c881d10

Please sign in to comment.