solidity/test/libsolidity/syntaxTests/inlineAssembly/use_msize_with_optimizer.sol
2019-12-02 19:30:14 +01:00

12 lines
348 B
Solidity

contract C {
function f() pure public {
assembly {
let x := msize()
}
}
}
// ====
// optimize-yul: true
// ----
// SyntaxError: (52-101): The msize instruction cannot be used when the Yul optimizer is activated because it can change its semantics. Either disable the Yul optimizer or do not use the instruction.