diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr54321.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr54321.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr54321.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr54321.c new file mode 100644 index 000000000..13adc78d3 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr54321.c @@ -0,0 +1,12 @@ +/* PR tree-optimization/54321 */ +struct S { char s[0]; } *a; + +void +foo (void) +{ + char *b = a->s; + int c = 0; + b[0] = 0; + while (++c < 9) + b[c] = 255; +} |