aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr115221.c
blob: f139394e5c089b60ef1db36ec0ab243048664499 (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
/* { dg-do compile } */
/* { dg-options "-O2" } */

typedef unsigned uint32_t;
int cde40_t;
int offset;
void aal_test_bit();
uint32_t cde40_key_pol();
long cde40_offset_check(uint32_t pos) {
  cde40_key_pol();
  if (cde40_t)
    return (offset - 2) % (((pos == 3) ? 18 : 26)) != 0;
  return 0;
}
void cde40_check_struct() {
  uint32_t i, j, to_compare;
  for (;; i++) {
    cde40_offset_check(i);
    if (to_compare == 0) {
      if (i && cde40_key_pol())
	;
      to_compare = i;
      continue;
    }
    j = to_compare;
    for (; j < i; j++)
      aal_test_bit();
  }
}