aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr108782.c
blob: 1eac93db5741cf2bf6fa69bc982ed7269d4b0185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-additional-options "-fno-tree-copy-prop" } */

int m;

__attribute__ ((simd)) int
foo (void)
{
  unsigned a;
  int b = 0;

  m = a = 1;
  while (a != 0)
    {
      b = m;
      m = 2;
      ++a;
    }

  return b;
}