aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityParser.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-01-30 08:05:17 +0800
committerGav Wood <i@gavwood.com>2015-01-30 08:05:17 +0800
commitb1043c8651f16595ac95bf34aefd9f1bb8b3885d (patch)
tree0ec06a2a93e8d4d892f8fc4dd92ffa015da6de9d /SolidityParser.cpp
parenta55a99a2b0ce860134a4e30b2f27a20489f37f0a (diff)
parent7925610ab4f6b2110526bc4accb30ee971d8fe5f (diff)
downloaddexon-solidity-b1043c8651f16595ac95bf34aefd9f1bb8b3885d.tar.gz
dexon-solidity-b1043c8651f16595ac95bf34aefd9f1bb8b3885d.tar.zst
dexon-solidity-b1043c8651f16595ac95bf34aefd9f1bb8b3885d.zip
Merge branch 'develop' of github.com:ethereum/cpp-ethereum into develop
Conflicts: test/SolidityEndToEndTest.cpp test/SolidityNameAndTypeResolution.cpp test/SolidityParser.cpp
Diffstat (limited to 'SolidityParser.cpp')
-rw-r--r--SolidityParser.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/SolidityParser.cpp b/SolidityParser.cpp
index 0059ccf7..4adee9c6 100644
--- a/SolidityParser.cpp
+++ b/SolidityParser.cpp
@@ -594,6 +594,33 @@ BOOST_AUTO_TEST_CASE(fallback_function)
BOOST_CHECK_NO_THROW(parseText(text));
}
+BOOST_AUTO_TEST_CASE(event)
+{
+ char const* text = R"(
+ contract c {
+ event e();
+ })";
+ BOOST_CHECK_NO_THROW(parseText(text));
+}
+
+BOOST_AUTO_TEST_CASE(event_arguments)
+{
+ char const* text = R"(
+ contract c {
+ event e(uint a, string32 s);
+ })";
+ BOOST_CHECK_NO_THROW(parseText(text));
+}
+
+BOOST_AUTO_TEST_CASE(event_arguments_indexed)
+{
+ char const* text = R"(
+ contract c {
+ event e(uint a, string32 indexed s, bool indexed b);
+ })";
+ BOOST_CHECK_NO_THROW(parseText(text));
+}
+
BOOST_AUTO_TEST_SUITE_END()
}