mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add function side effects test.
This commit is contained in:
parent
cb1af8b88a
commit
2b5a24e82e
8
test/libyul/functionSideEffects/verbatim.yul
Normal file
8
test/libyul/functionSideEffects/verbatim.yul
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
function a() -> x { x := verbatim_0i_1o(hex"6007") }
|
||||||
|
function b() { let t := a() }
|
||||||
|
}
|
||||||
|
// ----
|
||||||
|
// : movable, movable apart from effects, can be removed, can be removed if no msize
|
||||||
|
// a: can loop, writes other state, writes storage, writes memory
|
||||||
|
// b: can loop, writes other state, writes storage, writes memory
|
Loading…
Reference in New Issue
Block a user