tree-optimization/98758 - fix integer arithmetic in data-ref analysis
[gcc.git] / gcc / testsuite / gcc.dg / torture / pr98758.c
1 /* { dg-do compile } */
2
3 long *a, *b;
4 long c;
5 void d(void)
6 {
7 b = a;
8 while (c) {
9 *a = (__INTPTR_TYPE__)(a += (long)1 << (sizeof(long) * 8 - 10));
10 c = b[0];
11 b = a;
12 }
13 }