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

10 lines
254 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(){ msg.value: 0 }