diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr54327.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr54327.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr54327.c b/gcc/testsuite/gcc.dg/torture/pr54327.c new file mode 100644 index 00000000000..fe7499aab33 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr54327.c @@ -0,0 +1,15 @@ +/* { dg-do compile } */ + +#include <string.h> +#include <stdlib.h> +void treathead () +{ + char *a = ';' == '\0' ? : 0; + if (*a == '=') + { + while (*a == (*a == 0) || *a == '\'') + a++; + if (strlen (a) < 2) + abort (); + } +} |