mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Rename ErrorTag to invalidJumpLabel in inline assembly
This commit is contained in:
@@ -179,7 +179,7 @@ BOOST_AUTO_TEST_CASE(imbalanced_stack)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(error_tag)
|
||||
{
|
||||
BOOST_CHECK(successAssemble("{ ErrorTag }"));
|
||||
BOOST_CHECK(successAssemble("{ invalidJumpLabel }"));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
@@ -7692,13 +7692,13 @@ BOOST_AUTO_TEST_CASE(packed_storage_overflow)
|
||||
BOOST_CHECK(callContractFunction("f()") == encodeArgs(u256(0x1234), u256(0), u256(0), u256(0xfffe)));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(inline_assembly_errortag)
|
||||
BOOST_AUTO_TEST_CASE(inline_assembly_invalidjumplabel)
|
||||
{
|
||||
char const* sourceCode = R"(
|
||||
contract C {
|
||||
function f() {
|
||||
assembly {
|
||||
jump(ErrorTag)
|
||||
jump(invalidJumpLabel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user