aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/110_no_overflow_with_large_literal.sol
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-05-31 00:41:34 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-31 02:50:06 +0800
commit6e23006937f583dcfe0ce1a356ea57f88865974f (patch)
tree7ebf5d8543845de1500264d43542397f2123eb4b /test/libsolidity/syntaxTests/nameAndTypeResolution/110_no_overflow_with_large_literal.sol
parentdeeca7bc5d968e90d65c3ce094ae1e93c3844637 (diff)
downloaddexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.gz
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.bz2
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.lz
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.xz
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.zst
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.zip
Split out SolidityNameAndTypeResolution tests into SyntaxTests
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/110_no_overflow_with_large_literal.sol')
-rw-r--r--test/libsolidity/syntaxTests/nameAndTypeResolution/110_no_overflow_with_large_literal.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/110_no_overflow_with_large_literal.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/110_no_overflow_with_large_literal.sol
new file mode 100644
index 00000000..c3399ddf
--- /dev/null
+++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/110_no_overflow_with_large_literal.sol
@@ -0,0 +1,8 @@
+contract c {
+ function c () public {
+ a = 115792089237316195423570985008687907853269984665640564039458;
+ }
+ uint256 a;
+}
+// ----
+// Warning: (17-119): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.