Add analyzer-torture.exp
Introduces a new testsuite script, `analyzer-torture.exp`, to run analyzer torture tests.
This commit introduces a new testsuite script, analyzer-torture.exp. The script is designed to run torture tests specifically for the GCC static analyzer. Torture tests are collections of complex test cases that push the boundaries of the compiler’s capabilities, helping uncover obscure bugs and ensure robustness.
In Details
This commit adds g++.dg/analyzer/torture/analyzer-torture.exp which presumably runs existing and future analyzer torture tests. Toolchain devs should care because this improves the automated testing of the static analyzer, potentially catching regressions and improving its reliability.
For Context
This commit enhances GCC's testing infrastructure by adding a new script for running "torture tests" on the static analyzer. A static analyzer is a tool that examines code for potential errors without actually running the program. Torture tests are particularly complex and challenging test cases designed to expose hidden bugs and ensure the analyzer's reliability. This addition helps ensure the analyzer produces accurate and dependable results.