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

void foo (int *, int *);
int bar ()
{
  int a = 0;
  int b = 0;
  if (b != 0)
    {
      int ax = a;
      int bx = b;
      while (bx != 0)
	{
	  int tem = ax % bx;
	  ax = bx;
	  bx = tem;
	}
    }
  foo (&a, &b);
}