Skip to content
Unverified Commit 8a3d75a7 authored by Florian Hahn's avatar Florian Hahn
Browse files

[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.
parent e83c6aa9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment