[asan][test] Fix use-after-scope-capture test after D148269
authorPaul Kirth <paulkirth@google.com>
Fri, 14 Apr 2023 23:51:34 +0000 (23:51 +0000)
committerPaul Kirth <paulkirth@google.com>
Sat, 15 Apr 2023 00:10:49 +0000 (00:10 +0000)
commit45e2c6c5cd52833af09c09741ec8dd7e7c925019
treec8611d7bdede84a05a322cbbd8b53b3988c18ec3
parente3b378fad95196c721fc2258f325591f21595c81
[asan][test] Fix use-after-scope-capture test after D148269

After enabling ArgPromotion at lower opt levels, the body of this test
was optimized away, and the CHECK lines no longer functioned.

Setting -O0 is a hammer, but gets the test passing again, until code owners
can find a better solution.

Reviewed By: fmayer

Differential Revision: https://reviews.llvm.org/D148396
compiler-rt/test/asan/TestCases/use-after-scope-capture.cpp