aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/395_inline_assembly_leave_items_on_stack.sol
blob: 56043ccf0220b47b2e0d613db6237e6769fb6f05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract C {
    function f() pure public {
        assembly {
            mload(0)
        }
    }
}
// ----
// Warning: (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).