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

struct s
{
  int_t n;
  int_t m : 1;
  int_t l : 31;
};

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

  for (i = 0; i < x; i++)
    {
      const struct s t = s[i];
      x += t.m ? 1 : 0;
    }
  return x;
}