diff options
author | Christian Parpart <christian@ethereum.org> | 2018-12-01 00:34:54 +0800 |
---|---|---|
committer | Christian Parpart <christian@ethereum.org> | 2018-12-01 00:34:54 +0800 |
commit | 757623e381aba24b81a2365cf19037d3d96bf945 (patch) | |
tree | 15f7f3467df5464cb2b26583628d672091b1c590 /test/libsolidity | |
parent | 18e3d6dbca1250cdc36119c3da8328338fe9f1f6 (diff) | |
download | dexon-solidity-757623e381aba24b81a2365cf19037d3d96bf945.tar.gz dexon-solidity-757623e381aba24b81a2365cf19037d3d96bf945.tar.zst dexon-solidity-757623e381aba24b81a2365cf19037d3d96bf945.zip |
liblangutil: SourceLocation: Retricts == and != operator
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/Assembly.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index 004917d4..aa10147c 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -135,7 +135,8 @@ void checkAssemblyLocations(AssemblyItems const& _items, vector<SourceLocation> BOOST_CHECK_EQUAL(_items.size(), _locations.size()); for (size_t i = 0; i < min(_items.size(), _locations.size()); ++i) { - if (_items[i].location() != _locations[i]) + if (_items[i].location().start != _locations[i].start || + _items[i].location().end != _locations[i].end) { BOOST_CHECK_MESSAGE(false, "Location mismatch for item " + to_string(i) + ". Found the following locations:"); printAssemblyLocations(_items); |