diff options
Diffstat (limited to 'test/example/debug-location-propagation.cpp')
-rw-r--r-- | test/example/debug-location-propagation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/example/debug-location-propagation.cpp b/test/example/debug-location-propagation.cpp index b4685e391..06bf8ab48 100644 --- a/test/example/debug-location-propagation.cpp +++ b/test/example/debug-location-propagation.cpp @@ -33,10 +33,10 @@ int main() { auto& debugLocations = module->getFunction("adder")->debugLocations; assert(debugLocations.size() == 4); - assert(debugLocations[x].columnNumber == 13); - assert(debugLocations[y].columnNumber == 13); - assert(debugLocations[add].columnNumber == 2); - assert(debugLocations[drop].columnNumber == 2); + assert(debugLocations[x]->columnNumber == 13); + assert(debugLocations[y]->columnNumber == 13); + assert(debugLocations[add]->columnNumber == 2); + assert(debugLocations[drop]->columnNumber == 2); BinaryenSetDebugInfo(false); BinaryenModuleDispose(module); |