diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-05 07:25:41 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-22 08:02:19 +0800 |
commit | ae02bb5aadfa49636f9931524dbc026c855201f1 (patch) | |
tree | 0328334a01d5198a6f17c97c8ad6fa0c46a52906 /test/libsolidity | |
parent | d01786f0aa4e128f70aea2bc53a8d3c61294a587 (diff) | |
download | dexon-solidity-ae02bb5aadfa49636f9931524dbc026c855201f1.tar dexon-solidity-ae02bb5aadfa49636f9931524dbc026c855201f1.tar.gz dexon-solidity-ae02bb5aadfa49636f9931524dbc026c855201f1.tar.bz2 dexon-solidity-ae02bb5aadfa49636f9931524dbc026c855201f1.tar.lz dexon-solidity-ae02bb5aadfa49636f9931524dbc026c855201f1.tar.xz dexon-solidity-ae02bb5aadfa49636f9931524dbc026c855201f1.tar.zst dexon-solidity-ae02bb5aadfa49636f9931524dbc026c855201f1.zip |
Raise error on oversized number literals in assembly
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 70620f78..45fb54f8 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -390,6 +390,7 @@ BOOST_AUTO_TEST_CASE(number_literals) CHECK_PARSE_ERROR("{ let x := .1 }", ParserError, "Invalid number literal."); CHECK_PARSE_ERROR("{ let x := 1e5 }", ParserError, "Invalid number literal."); CHECK_PARSE_ERROR("{ let x := 67.235 }", ParserError, "Invalid number literal."); + CHECK_STRICT_ERROR("{ let x := 0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff }", TypeError, "Number literal too large (> 256 bits)"); } BOOST_AUTO_TEST_CASE(function_definitions) |