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

int a;
short b;
short fn1(unsigned short p1) { return p1 << a; }

int main()
{
  short c;
  int d = 4;
  for (; b;)
    {
      c = d + 1;
      fn1(c);
      d = 0;
    }
  d++;
  return 0;
}