aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr48694-2.c
blob: 4791ac3f70c7da643f7f6fcaccb7c00ed87722b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */

extern volatile int g_4[1][4];
extern int g_7;
void modify(int *);
void func_2()
{
  int l_46 = 4;
  if (g_7)
    modify(&l_46);
  else
    {
      int i;
      for (i = 0; i != 5; i += 1)
	{
	  volatile int *vp = &g_4[0][l_46];
	  *vp = 0;
	}
    }
}