solidity/test/libsolidity/smtCheckerTests/inheritance/constructor_state_variable_init.sol
2021-01-12 14:00:07 +01:00

12 lines
255 B
Solidity

pragma experimental SMTChecker;
contract C {
uint x = 2;
constructor () {
assert(x == 2);
assert(x == 3);
}
}
// ----
// Warning 6328: (97-111): CHC: Assertion violation happens here.\nCounterexample:\nx = 2\n\nTransaction trace:\nC.constructor()