PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr45991.c
blobeefce4429e1b1360729cb424a9358adb64d83743
1 /* { dg-do compile } */
2 /* { dg-options "-O -fstrict-overflow" } */
4 struct S
6 int i;
7 };
9 char A[64];
11 void foo (char **dst, int i)
13 char *p = A + 16;
14 while (i--)
16 int b = ((struct S *) (&p[i * 16 + 4]))->i;
17 char *c = A + i * 16;
18 dst[i] = c + b;