aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorVoR0220 <catalanor0220@gmail.com>2016-03-30 22:52:33 +0800
committerVoR0220 <catalanor0220@gmail.com>2016-03-31 00:54:00 +0800
commit427b9557d688fe901814350099540ce333a59acd (patch)
tree8a1bbed70a3dfd34e8919a8ffa13ed02b563b3a2 /test/libsolidity
parent6c61e28dc22894a8b035ba25ed727db664a4b163 (diff)
downloaddexon-solidity-427b9557d688fe901814350099540ce333a59acd.tar.gz
dexon-solidity-427b9557d688fe901814350099540ce333a59acd.tar.zst
dexon-solidity-427b9557d688fe901814350099540ce333a59acd.zip
added solidity invalid fixed type test
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index 3d0cc2cd..684731e8 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -3258,6 +3258,18 @@ BOOST_AUTO_TEST_CASE(library_functions_do_not_have_value)
BOOST_CHECK(!success(text));
}
+BOOST_AUTO_TEST_CASE(invalid_fixed_type_long)
+{
+ char const* text = R"(
+ contract test {
+ function f() {
+ fixed8x888888888888888888888888888888888888888888888888888 b;
+ }
+ }
+ )";
+ BOOST_CHECK(!success(text));
+}
+
BOOST_AUTO_TEST_SUITE_END()
}