aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/387_inline_assembly_literals_on_stack.sol
blob: 62fe71710024092f18ca3b1113d142e8f8446334 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract C {
    function f() pure public {
        assembly {
            1
        }
    }
}
// ----
// SyntaxError: (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).