diff options
author | chriseth <c@ethdev.com> | 2017-02-14 23:08:33 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-02-16 17:18:16 +0800 |
commit | 01fcd989b57d31fa8fc63720401ffc77698ee57b (patch) | |
tree | 938e73c821b7ca5d2370bb06720e7850c5b36e3f /test | |
parent | a5ce81100ef32654e351329fff5cd0e19622798c (diff) | |
download | dexon-solidity-01fcd989b57d31fa8fc63720401ffc77698ee57b.tar.gz dexon-solidity-01fcd989b57d31fa8fc63720401ffc77698ee57b.tar.zst dexon-solidity-01fcd989b57d31fa8fc63720401ffc77698ee57b.zip |
More tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/InlineAssembly.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp index 40135a06..ddbc3c63 100644 --- a/test/libsolidity/InlineAssembly.cpp +++ b/test/libsolidity/InlineAssembly.cpp @@ -224,6 +224,16 @@ BOOST_AUTO_TEST_CASE(print_string_literal_unicode) parsePrintCompare(parsed); } +BOOST_AUTO_TEST_CASE(function_definitions_multiple_args) +{ + parsePrintCompare("{\n function f(a, d)\n {\n mstore(a, d)\n }\n function g(a, d) -> (x, y)\n {\n }\n}"); +} + +BOOST_AUTO_TEST_CASE(function_calls) +{ + parsePrintCompare("{\n g(1, mul(2, x), f(mul(2, 3)))\n x()\n}"); +} + BOOST_AUTO_TEST_SUITE_END() BOOST_AUTO_TEST_SUITE(Analysis) |