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

13 lines
237 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: also
// compileToEwasm: also
2019-05-02 19:17:06 +00:00
// ----
// test() -> true