PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr47265.c
blob183c3f986217ef69b3e099844868e52afe60c4ad
1 /* PR tree-optimization/47265 */
3 struct S
5 char a[3];
6 char b[3];
7 };
9 void
10 bar (char *dst, const char *src, unsigned n)
12 while (n--)
13 *dst++ = *src ? *src++ : ' ';
16 void
17 foo (struct S *s)
19 bar (s->a, s->b, 3);