aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/Imports.cpp
diff options
context:
space:
mode:
authorRhett Aultman <roadriverrail@gmail.com>2016-12-23 00:30:53 +0800
committerRhett Aultman <rhett.aultman@meraki.net>2017-01-17 01:32:58 +0800
commitfda39afdba9591131aac6d647cb46247e9495606 (patch)
treee09d3da1d2ce1446dff777b4d9a3edaf475d01a6 /test/libsolidity/Imports.cpp
parenta7f8a1986a9b3997c75cfc84235e567d2fa9aab4 (diff)
downloaddexon-solidity-fda39afdba9591131aac6d647cb46247e9495606.tar.gz
dexon-solidity-fda39afdba9591131aac6d647cb46247e9495606.tar.zst
dexon-solidity-fda39afdba9591131aac6d647cb46247e9495606.zip
Modify library collision test
Since libaraies no longer collide on name but on fully-qualified name, you can only induce collision by colliding them as idenfitiers.
Diffstat (limited to 'test/libsolidity/Imports.cpp')
-rw-r--r--test/libsolidity/Imports.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/libsolidity/Imports.cpp b/test/libsolidity/Imports.cpp
index 56895fdc..6aa96fb8 100644
--- a/test/libsolidity/Imports.cpp
+++ b/test/libsolidity/Imports.cpp
@@ -106,6 +106,7 @@ 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("c", "import {A} from \"./a\"; import {A} from \"./b\";");
BOOST_CHECK(!c.compile());
}