mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add new tests
This commit is contained in:
parent
b753cb6120
commit
d617ef461e
7
test/libsolidity/smtCheckerTests/options/engine_none.sol
Normal file
7
test/libsolidity/smtCheckerTests/options/engine_none.sol
Normal file
@ -0,0 +1,7 @@
|
||||
contract C {
|
||||
function f(uint x) public pure {
|
||||
assert(x > 0);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// SMTEngine: none
|
9
test/libsolidity/smtCheckerTests/options/pragma.sol
Normal file
9
test/libsolidity/smtCheckerTests/options/pragma.sol
Normal file
@ -0,0 +1,9 @@
|
||||
pragma experimental SMTChecker;
|
||||
contract C {
|
||||
function f(uint x) public pure {
|
||||
assert(x > 0);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 5523: (0-31): The SMTChecker pragma has been deprecated and will be removed in the future. Please use the "model checker engine" compiler setting to activate the SMTChecker instead. If the pragma is enabled, all engines will be used.
|
||||
// Warning 6328: (90-103): CHC: Assertion violation happens here.\nCounterexample:\n\nx = 0\n\nTransaction trace:\nC.constructor()\nC.f(0)
|
Loading…
Reference in New Issue
Block a user