solidity/test/libsolidity/smtCheckerTests/special/msg_value_2.sol

9 lines
244 B
Solidity
Raw Normal View History

2021-01-20 10:22:28 +00:00
pragma experimental SMTChecker;
contract C {
function f() public payable {
assert(msg.value > 0);
}
}
// ----
// Warning 6328: (78-99): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f()