https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113378

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Alejandro Colomar from comment #4)
> 
> Not necessarily.  I use stdin for simplicity in small tests.  The
> test suite

Which testsuite is this?  I should note GCC uses dejagnu (and you can make your
own testsuite using that too for other compilers too) which allows you to do
things like:

```
#include <a2i/str2i.h>

int
main(void)
{
  unsigned char  n;
  str2i(signed char, &n, "0"); /* { dg-error "-Werror=pointer-sign" } */
}
```
Which is easier to maintain than shell scripts like you provided in comment #4.
 Note a simple dejagnu testsuite supports dg-error/dg-warning by default; GCC's
version of dg-error/dg-warning has more features though.

Reply via email to