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

14 lines
247 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;
}
}
// ====
// compileToEwasm: also
// compileViaYul: also
2019-07-08 14:04:52 +00:00
// ----
// f() -> true