[Bug testsuite/116163] RFE: add a linting tool for DegaGnu tests
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 31 20:15:41 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116163
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So current things that are known to be used a lot (wrongly):
* `dg-run` should be replaced with `dg-do run` (this has showed up more than
you think and even in new code; I just happened to have this typo too).
* `*.c` files under the `g++.*` testsuite (not the c-c++-common ones where it
is acceptable). This is definitely happening:
find g++.dg -name "*.c"
g++.dg/abi/empty12a.c
...
many are not actually being run in first place.
* white space after `compile`, `run`, etc. in dg-do.
Sam can add what else he has found.
More information about the Gcc-bugs
mailing list