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

13 lines
223 B
Solidity
Raw Normal View History

2019-07-08 14:04:52 +00:00
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