aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr58901-0.c
blob: d98e29ef89df7b57d87bb2c31f5e5f67d60f8e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
typedef int __attribute__ ((mode (SI))) int_t;

struct s
{
  int_t n;
  int_t c[];
};

int_t
ashlsi (int_t x, const struct s *s)
{
  int_t i;

  for (i = 0; i < s->n; i++)
    x ^= 1 << s->c[i];
  return x;
}