mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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.
This commit is contained in:
parent
e3b0827721
commit
220ccfb492
@ -104,8 +104,7 @@ BOOST_AUTO_TEST_CASE(simple_alias)
|
|||||||
BOOST_AUTO_TEST_CASE(library_name_clash)
|
BOOST_AUTO_TEST_CASE(library_name_clash)
|
||||||
{
|
{
|
||||||
CompilerStack c;
|
CompilerStack c;
|
||||||
c.addSource("a", "library A {} pragma solidity >=0.0;");
|
c.addSource("a", "library A {} library A {} pragma solidity >=0.0;");
|
||||||
c.addSource("b", "library A {} pragma solidity >=0.0;");
|
|
||||||
BOOST_CHECK(!c.compile());
|
BOOST_CHECK(!c.compile());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user