diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-12-01 07:54:02 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-12-01 07:54:02 +0800 |
commit | 610027cd26dda1cded357f62585e75eed3cb0e48 (patch) | |
tree | c78bc7721b60bddbd01fd82af35b0dcfe7fca306 | |
parent | eaab71294476f46513678be2e8cad02589d141dc (diff) | |
download | dexon-solidity-610027cd26dda1cded357f62585e75eed3cb0e48.tar.gz dexon-solidity-610027cd26dda1cded357f62585e75eed3cb0e48.tar.zst dexon-solidity-610027cd26dda1cded357f62585e75eed3cb0e48.zip |
Test that contracts separated by comments are compiled
-rw-r--r-- | test/libsolidity/SolidityEndToEndTest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index 98ea92ca..f2678d5b 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -8378,6 +8378,18 @@ BOOST_AUTO_TEST_CASE(inline_assembly_invalidjumplabel) BOOST_CHECK(callContractFunction("f()") == encodeArgs()); } +BOOST_AUTO_TEST_CASE(contracts_separated_with_comment) +{ + char const* sourceCode = R"( + contract C1 {} + /** + **/ + contract C2 {} + )"; + compileAndRun(sourceCode, 0, "C1"); + compileAndRun(sourceCode, 0, "C2"); +} + BOOST_AUTO_TEST_SUITE_END() } |