aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/smtCheckerTests/overflow
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-11-22 21:59:23 +0800
committerGitHub <noreply@github.com>2018-11-22 21:59:23 +0800
commitbe321090e665da4919dc7a41e909032f60ea2dd7 (patch)
tree45612f582bad9de218ff14d636ec5c2dc10616d3 /test/libsolidity/smtCheckerTests/overflow
parenta5411965e6d7abf50f896291d69cab820db6ef87 (diff)
parent32fe4768a9f9a3872eec541c1e7b3f3c94c8428c (diff)
downloaddexon-solidity-be321090e665da4919dc7a41e909032f60ea2dd7.tar
dexon-solidity-be321090e665da4919dc7a41e909032f60ea2dd7.tar.gz
dexon-solidity-be321090e665da4919dc7a41e909032f60ea2dd7.tar.bz2
dexon-solidity-be321090e665da4919dc7a41e909032f60ea2dd7.tar.lz
dexon-solidity-be321090e665da4919dc7a41e909032f60ea2dd7.tar.xz
dexon-solidity-be321090e665da4919dc7a41e909032f60ea2dd7.tar.zst
dexon-solidity-be321090e665da4919dc7a41e909032f60ea2dd7.zip
Merge pull request #4645 from ethereum/smt-syntax-tests
Move SMT tests to use isoltest
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