solidity/test/libsolidity/semanticTests/viaYul/msg_sender.sol
2019-05-07 17:19:45 +02:00

12 lines
213 B
Solidity

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