solidity/test/libsolidity/syntaxTests/inlineAssembly/reserved_identifiers_byzantium.sol
Alex Beregszaszi c032ad3379 Update tests
2020-12-10 17:18:15 +01:00

17 lines
514 B
Solidity

contract C {
function f() public pure {
assembly {
let shl := 1
}
assembly {
pop(shl(1, 2))
}
}
}
// ====
// EVMVersion: =byzantium
// ----
// DeclarationError 5017: (67-70): The identifier "shl" is reserved and can not be used.
// TypeError 6612: (107-110): The "shl" instruction is only available for Constantinople-compatible VMs (you are currently compiling for "byzantium").
// TypeError 3950: (107-116): Expected expression to evaluate to one value, but got 0 values instead.