aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/overflow
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-11-15 00:14:07 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-11-22 21:33:28 +0800
commit32fe4768a9f9a3872eec541c1e7b3f3c94c8428c (patch)
tree45612f582bad9de218ff14d636ec5c2dc10616d3 /test/libsolidity/smtCheckerTests/overflow
parent4a71080ae575390a72421572396c37fd977b0115 (diff)
downloaddexon-solidity-32fe4768a9f9a3872eec541c1e7b3f3c94c8428c.tar
dexon-solidity-32fe4768a9f9a3872eec541c1e7b3f3c94c8428c.tar.gz
dexon-solidity-32fe4768a9f9a3872eec541c1e7b3f3c94c8428c.tar.bz2
dexon-solidity-32fe4768a9f9a3872eec541c1e7b3f3c94c8428c.tar.lz
dexon-solidity-32fe4768a9f9a3872eec541c1e7b3f3c94c8428c.tar.xz
dexon-solidity-32fe4768a9f9a3872eec541c1e7b3f3c94c8428c.tar.zst
dexon-solidity-32fe4768a9f9a3872eec541c1e7b3f3c94c8428c.zip
Organize smt tests in subdirectories
Diffstat (limited to 'test/libsolidity/smtCheckerTests/overflow')
-rw-r--r--test/libsolidity/smtCheckerTests/overflow/simple_overflow.sol6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/smtCheckerTests/overflow/simple_overflow.sol b/test/libsolidity/smtCheckerTests/overflow/simple_overflow.sol
new file mode 100644
index 00000000..894ff1a4
--- /dev/null
+++ b/test/libsolidity/smtCheckerTests/overflow/simple_overflow.sol
@@ -0,0 +1,6 @@
+pragma experimental SMTChecker;
+contract C {
+ function f(uint a, uint b) public pure returns (uint) { return a + b; }
+}
+// ----
+// Warning: (112-117): Overflow (resulting value larger than 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) happens here