Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / pr54981.c
1 /* { dg-do compile } */
2 /* { dg-options "-O -ftree-loop-distribute-patterns -fcompare-debug" } */
3
4 extern void bar(unsigned *, char *);
5
6 void foo(char *s)
7 {
8   unsigned i;
9   char t[2];
10
11   bar(&i, t);
12
13   for (i = 0; i < 2; i++)
14     s[i] = t[i];
15 }