solidity/test/libsolidity/syntaxTests/inlineAssembly/invalid/unbalanced_two_stack_load.sol
2020-01-08 16:12:06 +01:00

9 lines
224 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.