solidity/test/libsolidity/semanticTests/expressions/bytes_comparison.sol
2019-07-08 16:04:52 +02:00

13 lines
223 B
Solidity

contract test {
function f() public returns (bool) {
bytes2 a = "a";
bytes2 x = "aa";
bytes2 b = "b";
return a < x && x < b;
}
}
// ====
// compileViaYul: also
// ----
// f() -> true