mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Command-line tests checking behavior of msize without optimizer
This commit is contained in:
@@ -0,0 +1 @@
|
||||
--strict-assembly --debug-info none --optimize
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
function f() -> x {
|
||||
x := mload(0)
|
||||
}
|
||||
|
||||
// In pure Yul optimization in presence of msize is allowed.
|
||||
// Everything in this file should get optimized out.
|
||||
pop(msize())
|
||||
|
||||
let x := 0
|
||||
let y := x
|
||||
mstore(0, f())
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
======= strict_asm_msize_with_optimizer/input.yul (EVM) =======
|
||||
|
||||
Pretty printed source:
|
||||
object "object" {
|
||||
code { { } }
|
||||
}
|
||||
|
||||
|
||||
Binary representation:
|
||||
00
|
||||
|
||||
Text representation:
|
||||
stop
|
||||
Reference in New Issue
Block a user