aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arc/loop-2.cpp
blob: 9cfb3274e2136f3b58b66fe4e576e82253fbacea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-options "-O2" } */
/* { dg-do assemble } */

/* This file fails to assemble if we forgot to increase the number of
   uses for loop's start and end labels.  */
int a, c, d;
int *b;
void fn1(int p1) {
  if (d == 5)
    for (int i; i < p1; ++i)
      if (c)
        b[i] = c;
      else
        int t = a = t;
  else
    for (int i; i < p1; ++i)
      b[i] = 0;
}