solidity/test/libsolidity/semanticTests/viaYul/msg_sender.sol

12 lines
213 B
Solidity
Raw Normal View History

2019-05-02 19:17:06 +00:00
contract C {
function test() public view returns (bool) {
address x;
assembly { x := caller() }
return x == msg.sender;
}
}
// ====
// compileViaYul: true
// ----
// test() -> true