mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
213 B
Solidity
20 lines
213 B
Solidity
contract C {
|
|
uint x = initX();
|
|
|
|
function initX() internal pure returns (uint) {
|
|
return 42;
|
|
}
|
|
}
|
|
|
|
contract D is C {
|
|
uint y;
|
|
|
|
constructor() {
|
|
assert(x == 42);
|
|
y = x;
|
|
}
|
|
}
|
|
// ====
|
|
// SMTEngine: bmc
|
|
// ----
|