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

10 lines
238 B
Solidity

contract C {
function f() public payable {
assert(msg.value > 0);
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (46-67): CHC: Assertion violation happens here.\nCounterexample:\n\n\nTransaction trace:\nC.constructor()\nC.f()