aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/387_inline_assembly_literals_on_stack.sol
blob: 7b68c60b996c6522541227f91295e46caba0f660 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract C {
    function f() pure public {
        assembly {
            1
        }
    }
}
// ----
// Warning: (75-76): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
// DeclarationError: (61-86): Unbalanced stack at the end of a block: 1 surplus item(s).