Verify that running in optimized mode while checking for use-after-dtor errors, does not generate tail call invocation of destructor. This avoids possible error where stack frame for the destructor is eliminated, making tracking down the errors more difficult.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
Please rename the test to "use-after-dtor.cc". It's not really about tail calls, it's a general test of the use-after-dtor report.
test/msan/dtor-tail-call.cc | ||
---|---|---|
4 | Add a test at -O2 | |
35 | Maybe remove the space after "main" to make this more robust, in case, on some other platform, the symbolizer would add () after main. | |
39 | Remove () for the same reason |
Add a test at -O2