aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr97359.c
blob: 9e3cc9d75abefa4052bf32e26ee116b445ccb090 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -Wno-pointer-to-int-cast" } */

typedef unsigned int uint32_t;
int a;
void b(uint32_t c) {
  uint32_t *d = &c;
  for (; a;)
    for (;; (*d %= a) / (*d > 1 > (c > 0)) ?: (int) d)
      ;
}