solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/unbalanced_two_stack_load.sol

9 lines
220 B
Solidity

contract c {
uint8 x;
function f() public {
assembly { pop(x) }
}
}
// ----
// TypeError: (75-76): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.