aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityABIJSON.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 /SolidityABIJSON.cpp
parent5da76a3bbdb9c55d7c079b82d6bebfedcd7073b6 (diff)
downloaddexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.gz
dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.tar.zst
dexon-solidity-a55a99a2b0ce860134a4e30b2f27a20489f37f0a.zip
Fallback functions.
Diffstat (limited to 'SolidityABIJSON.cpp')
-rw-r--r--SolidityABIJSON.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/SolidityABIJSON.cpp b/SolidityABIJSON.cpp
index 4a44ebb8..edafb168 100644
--- a/SolidityABIJSON.cpp
+++ b/SolidityABIJSON.cpp
@@ -273,6 +273,15 @@ BOOST_AUTO_TEST_CASE(const_function)
checkInterface(sourceCode, interface);
}
+BOOST_AUTO_TEST_CASE(exclude_fallback_function)
+{
+ char const* sourceCode = "contract test { function() {} }";
+
+ char const* interface = "[]";
+
+ checkInterface(sourceCode, interface);
+}
+
BOOST_AUTO_TEST_SUITE_END()
}