aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr118140.c
blob: 2dab98bfc913317545a8398166969817ceaafe5d (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
/* { dg-do run { target { aarch64*-*-* || riscv*-*-* } } } */
/* { dg-additional-options "-std=gnu99" } */

long long a;
_Bool d;
char e;
_Bool f[17];
_Bool f_3;

int main() {
  for (char g = 3; g < 16; g++) {
      d |= ({
        int h = f[g - 1] ? 2 : 0;
        _Bool t;
        if (f[g - 1])
          t = f_3;
        else
          t = 0;
        int i = t;
        h > i;
      });
    e += f[g + 1];
  }

  if (d != 0)
    __builtin_abort ();
}