solidity/test/libsolidity/smtCheckerTests/bmc_coverage/assert_in_constructor.sol
2021-04-08 21:03:39 +02:00

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
// ----