aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/384_inline_assembly_constant_variable_via_offset.sol
blob: 6470a210110875e9baeebec56ab8a86bd0de3111 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                             
contract test {
    uint constant x = 2;
    function f() pure public {
        assembly {
            let r := x_offset
        }
    }
}
// ----
// TypeError: (112-120): Constant variables not supported by inline assembly.