aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr107326.c
blob: 333a515e7410a5b257a9f225b56b14b619af3118 (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
/* PR107326 */
/* { dg-do compile } */
struct Gsymtab {
  unsigned int : 8;
  unsigned int visited_somewhere : 1;
};

extern struct Gsymtab glob_symtab[];

int
visit_children (int i)
{
  int numvisited = 0;

  while (i < 1)
    {
      if (glob_symtab[i].visited_somewhere)
        ++numvisited;

      ++i;
    }

  return numvisited;
}