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

11 lines
218 B
Solidity

contract C {
uint[] a;
constructor() {
a.pop();
}
}
// ====
// SMTEngine: all
// ----
// Warning 2529: (43-50): CHC: Empty array "pop" happens here.\nCounterexample:\na = []\n\nTransaction trace:\nC.constructor()