solidity/test/libsolidity/semanticTests/viaYul/msg_sender.sol
2022-05-19 20:23:28 +02:00

12 lines
214 B
Solidity

contract C {
function test() public view returns (bool) {
address x;
assembly { x := caller() }
return x == msg.sender;
}
}
// ====
// compileToEwasm: also
// ----
// test() -> true