From 220ccfb492511eab5a45936e477e6882f52be96a Mon Sep 17 00:00:00 2001 From: Rhett Aultman Date: Mon, 12 Dec 2016 00:00:50 -0800 Subject: 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. --- test/libsolidity/Imports.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/libsolidity') 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()); } -- cgit