aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityParser.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-30 05:50:20 +0800
committerChristian <c@ethdev.com>2015-01-30 05:50:20 +0800
commita55a99a2b0ce860134a4e30b2f27a20489f37f0a (patch)
treed816d5ecc2bf7e61212bc963a6b41ef260e8d5a5 /SolidityParser.cpp
parent5da76a3bbdb9c55d7c079b82d6bebfedcd7073b6 (diff)
downloaddexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar
dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.gz
dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.bz2
dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.lz
dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.xz
dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.zst
dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.zip
Fallback functions.
Diffstat (limited to 'SolidityParser.cpp')
-rw-r--r--SolidityParser.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/SolidityParser.cpp b/SolidityParser.cpp
index 7bfb4c0c..0059ccf7 100644
--- a/SolidityParser.cpp
+++ b/SolidityParser.cpp
@@ -586,6 +586,14 @@ BOOST_AUTO_TEST_CASE(modifier_invocation)
BOOST_CHECK_NO_THROW(parseText(text));
}
+BOOST_AUTO_TEST_CASE(fallback_function)
+{
+ char const* text = "contract c {\n"
+ " function() { }\n"
+ "}\n";
+ BOOST_CHECK_NO_THROW(parseText(text));
+}
+
BOOST_AUTO_TEST_SUITE_END()
}