solidity/test/libsolidity/smtCheckerTests/operators/slice_bytes.sol
2021-03-30 10:28:48 +02:00

8 lines
137 B
Solidity

pragma experimental SMTChecker;
contract C {
function f(bytes calldata b) external pure {
require(b.length > 10);
((b[:])[5]);
}
}