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

9 lines
155 B
Solidity

contract test {
function f() public returns(int d) { return (-2) ** 3; }
}
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f() -> -8