solidity/test/libsolidity/semanticTests/state/msg_value.sol

11 lines
188 B
Solidity
Raw Normal View History

contract C {
function f() public payable returns (uint) {
return msg.value;
}
}
// ====
// compileViaYul: also
// ----
// f() -> 0
// f(), 12 ether -> 12000000000000000000