PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr67077.c
blob555b1e3a04a8a6e5077158c312e18ca7705d0f57
1 /* { dg-do compile } */
2 /* { dg-options "-Wall -O2" } */
4 unsigned char buffer[8];
5 unsigned long
6 foo (void)
8 unsigned long i;
9 i = buffer[0];
10 if (i >= 8)
11 return i - 7;
12 i++;
13 while (i > 8)
15 if (buffer[i-1] != 0)
16 return 0;
17 i--;
19 return 1;