mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use unknown file for invalid source index.
This commit is contained in:
@@ -573,9 +573,7 @@ BOOST_AUTO_TEST_CASE(customSourceLocations_reference_original_sloc)
|
||||
BOOST_REQUIRE(holds_alternative<VariableDeclaration>(result->statements.at(0)));
|
||||
VariableDeclaration const& varDecl = get<VariableDeclaration>(result->statements.at(0));
|
||||
|
||||
// -1 points to original source code, which in this case is `sourceText` (which is also
|
||||
// available via `0`, that's why the first @src is set to `1` instead.)
|
||||
CHECK_LOCATION(varDecl.debugData->location, sourceText, 10, 20);
|
||||
CHECK_LOCATION(varDecl.debugData->location, "", 10, 20);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
Reference in New Issue
Block a user