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

11 lines
345 B
Solidity
Raw Normal View History

contract C {
function f() pure public {
assembly {
mload(0)
}
}
}
// ----
// SyntaxError: (75-83): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
// DeclarationError: (61-93): Unbalanced stack at the end of a block: 1 surplus item(s).