solidity/test/libsolidity/semanticTests/functionCall/member_accessors.sol

24 lines
591 B
Solidity
Raw Normal View History

2020-01-28 10:59:44 +00:00
contract test {
uint256 public data;
bytes6 public name;
bytes32 public a_hash;
address public an_address;
constructor() public {
data = 8;
name = "Celina";
a_hash = keccak256("\x7b");
an_address = address(0x1337);
super_secret_data = 42;
}
uint256 super_secret_data;
}
// ====
// allowNonExistingFunctions: true
2020-01-28 10:59:44 +00:00
// compileViaYul: also
// ----
// data() -> 8
// name() -> "Celina"
// a_hash() -> 0xa91eddf639b0b768929589c1a9fd21dcb0107199bdd82e55c5348018a1572f52
// an_address() -> 0x1337
// super_secret_data() -> FAILURE