diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr46355.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr46355.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr46355.c b/gcc/testsuite/gcc.dg/pr46355.c new file mode 100644 index 000000000..e644ec584 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr46355.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-O -ftree-loop-distribution -fstrict-overflow" } */ + +void +foo (int *dest, int i, int u, int v) +{ + int j = i; + while (i) + { + dest[j--] = v; + dest[j--] = u; + } +} + |