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

10 lines
238 B
Solidity
Raw Normal View History

2021-01-20 10:22:28 +00:00
contract C {
function f() public payable {
assert(msg.value > 0);
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2021-01-20 10:22:28 +00:00
// ----
2021-03-31 15:11:54 +00:00
// Warning 6328: (46-67): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f()