solidity/test/libsolidity/semanticTests/expressions/bytes_comparison.sol

14 lines
247 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
// compileToEwasm: also
// ----
// f() -> true