PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr58432.c
blob22a720f142fa32d8bb053ff7f3fc54523e5c8f31
1 /* { dg-do compile } */
2 /* { dg-require-profiling "-fprofile-generate" } */
3 /* { dg-options "-O3 -fprofile-generate" } */
5 struct {
6 int prefix;
7 int dir_idx;
8 } *a;
9 int b;
10 void fn1() {
11 int *c, *d;
12 for (; b; b++)
13 if (d[b]) {
14 c[b] = d[b];
15 a[0].dir_idx = 0;