solidity/test/libsolidity/smtCheckerTests/inheritance/constructor_state_variable_init.sol

12 lines
247 B
Solidity
Raw Normal View History

contract C {
uint x = 2;
2020-06-23 12:14:24 +00:00
constructor () {
assert(x == 2);
assert(x == 3);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
// ----
2021-03-31 15:11:54 +00:00
// Warning 6328: (64-78): CHC: Assertion violation happens here.\nCounterexample:\nx = 2\n\nTransaction trace:\nC.constructor()