Hi, This patch moves gcc.dg/analyzer/explode-2.c to c-c++-common/analyzer and prunes unstable analyzer bailout diagnostics in the test so it can be run under both C and C++.
Tested on aarch64-unknown-linux-gnu with: make -k check-gcc
RUNTESTFLAGS="analyzer.exp=explode-2.c"
No regressions observed.
Summary:
- The analyzer still reports the expected leak/double-free diagnostics.
- Unstable messages ("analysis bailed out early", "terminating analysis
...") are pruned in the test so C++ noise does not cause spurious failures.
Patch* [0001-testsuite-Move-analyzer-explode-2.c-to-c-c-common.patch.]*
attached (patch is also generated by `git format-patch -1`).
OK for trunk?
Thanks,
Jayant Chauhan
0001-testsuite-Move-analyzer-explode-2.c-to-c-c-common-PR.patch
Description: Binary data
