aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr111583-1.c
blob: 0dda1a72b5764fa433fa32da474c2770aff8a170 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* { dg-do run } */
/* { dg-options "-Os" } */

short a, f, i;
static const int *e;
short *g;
long h;
int main()
{
    {
      unsigned j = i;
      a = 1;
      for (; a; a++) {
	    {
	      __INTPTR_TYPE__ b = j, d = h;
	      int c = 0;
	      while (d--)
		*(char *)b++ = c;
	    }
	  if (e)
	    break;
      }
      j && (*g)--;
      const int **k = &e;
      *k = 0;
    }
  if (f != 0)
    __builtin_abort ();
  return 0;
}