diff options
author | Rhett Aultman <roadriverrail@gmail.com> | 2016-12-12 16:00:50 +0800 |
---|---|---|
committer | Rhett Aultman <rhett.aultman@meraki.net> | 2017-01-17 01:32:57 +0800 |
commit | 220ccfb492511eab5a45936e477e6882f52be96a (patch) | |
tree | 525168763ddf74bd3a098604c9daddf91ac968be /test/libsolidity/Imports.cpp | |
parent | e3b0827721f114a371df57b7079205034683ed25 (diff) | |
download | dexon-solidity-220ccfb492511eab5a45936e477e6882f52be96a.tar.gz dexon-solidity-220ccfb492511eab5a45936e477e6882f52be96a.tar.zst dexon-solidity-220ccfb492511eab5a45936e477e6882f52be96a.zip |
Move clashing libraries to common source in test
Since contracts and libraries only collide if they share a common
source file now, this test only works if both libraries are in the
same source.
Diffstat (limited to 'test/libsolidity/Imports.cpp')
-rw-r--r-- | test/libsolidity/Imports.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/libsolidity/Imports.cpp b/test/libsolidity/Imports.cpp index 56895fdc..e01d2e90 100644 --- a/test/libsolidity/Imports.cpp +++ b/test/libsolidity/Imports.cpp @@ -104,8 +104,7 @@ BOOST_AUTO_TEST_CASE(simple_alias) BOOST_AUTO_TEST_CASE(library_name_clash) { CompilerStack c; - c.addSource("a", "library A {} pragma solidity >=0.0;"); - c.addSource("b", "library A {} pragma solidity >=0.0;"); + c.addSource("a", "library A {} library A {} pragma solidity >=0.0;"); BOOST_CHECK(!c.compile()); } |