summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr46052.c
blob: c32a93d07d812a8a03fe0c5184035ce8b70d8375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* { dg-do compile } */

int i;
int a[2];

static inline char bar (void)
{
  return i ? i : 1;
}

void foo (int n)
{
  while (n--)
    {
      a[0] ^= bar ();
      a[1] ^= bar ();
    }
}

static inline char bar1 (void)
{
}

void foo1 (int n)
{
  while (n--)
    {
      a[0] ^= bar1 ();
      a[1] ^= bar1 ();
    }
}

/* { dg-final { cleanup-tree-dump "vect" } } */