solidity/test/libsolidity/semanticTests/viaYul/conditional/conditional_with_variables.sol
Daniel Kirchner a8f7c69c47 Adjust tests.
2021-09-13 20:41:40 +02:00

16 lines
306 B
Solidity

contract A {
function f() public pure returns (uint, uint, uint, uint) {
uint x = 3;
uint y = 1;
uint z = (x > y) ? x : y;
uint w = x < y ? x : y;
return (x, y, z, w);
}
}
// ====
// requiresYulOptimizer: minimalStack
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> 3, 1, 3, 1