[ASan] Add read to large_func_test.cpp to prevent optimization.
After e5822ded, the call to LargeFunction can be optimized out, as x is never accessed in main. This is causing the test to fail, because the out-of-bounds access won't be executed. Adding an extra read and returning the value should prevent the optimizer from removing the call.
Loading
Please sign in to comment