mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
loadFromMemoryDynamic
This commit is contained in:
parent
8290b6305b
commit
5f043127ae
@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(smoke_test)
|
|||||||
"}\n";
|
"}\n";
|
||||||
bytes code = compileContract(sourceCode);
|
bytes code = compileContract(sourceCode);
|
||||||
|
|
||||||
unsigned boilerplateSize = 69;
|
unsigned boilerplateSize = 70;
|
||||||
bytes expectation({byte(Instruction::JUMPDEST),
|
bytes expectation({byte(Instruction::JUMPDEST),
|
||||||
byte(Instruction::PUSH1), 0x0, // initialize local variable x
|
byte(Instruction::PUSH1), 0x0, // initialize local variable x
|
||||||
byte(Instruction::PUSH1), 0x2,
|
byte(Instruction::PUSH1), 0x2,
|
||||||
@ -114,8 +114,8 @@ BOOST_AUTO_TEST_CASE(ifStatement)
|
|||||||
" function f() { bool x; if (x) 77; else if (!x) 78; else 79; }"
|
" function f() { bool x; if (x) 77; else if (!x) 78; else 79; }"
|
||||||
"}\n";
|
"}\n";
|
||||||
bytes code = compileContract(sourceCode);
|
bytes code = compileContract(sourceCode);
|
||||||
unsigned shift = 56;
|
unsigned shift = 57;
|
||||||
unsigned boilerplateSize = 69;
|
unsigned boilerplateSize = 70;
|
||||||
bytes expectation({byte(Instruction::JUMPDEST),
|
bytes expectation({byte(Instruction::JUMPDEST),
|
||||||
byte(Instruction::PUSH1), 0x0,
|
byte(Instruction::PUSH1), 0x0,
|
||||||
byte(Instruction::DUP1),
|
byte(Instruction::DUP1),
|
||||||
@ -155,8 +155,8 @@ BOOST_AUTO_TEST_CASE(loops)
|
|||||||
" function f() { while(true){1;break;2;continue;3;return;4;} }"
|
" function f() { while(true){1;break;2;continue;3;return;4;} }"
|
||||||
"}\n";
|
"}\n";
|
||||||
bytes code = compileContract(sourceCode);
|
bytes code = compileContract(sourceCode);
|
||||||
unsigned shift = 56;
|
unsigned shift = 57;
|
||||||
unsigned boilerplateSize = 69;
|
unsigned boilerplateSize = 70;
|
||||||
bytes expectation({byte(Instruction::JUMPDEST),
|
bytes expectation({byte(Instruction::JUMPDEST),
|
||||||
byte(Instruction::JUMPDEST),
|
byte(Instruction::JUMPDEST),
|
||||||
byte(Instruction::PUSH1), 0x1,
|
byte(Instruction::PUSH1), 0x1,
|
||||||
|
Loading…
Reference in New Issue
Block a user