solidity/test/libsolidity/smtCheckerTests/functions/constructor_hierarchy_empty_middle_no_invocation.sol

20 lines
374 B
Solidity

pragma experimental SMTChecker;
contract C {
uint a;
constructor() public {
a = 2;
}
}
contract B is C {
}
contract A is B {
constructor(uint x) public {
assert(a == 3);
}
}
// ----
// Warning 5667: (145-151): Unused function parameter. Remove or comment out the variable name to silence this warning.
// Warning 4661: (164-178): Assertion violation happens here