aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr97359.c
blob: 142542e404ccd11fe378803fdfcf7b99ab15f471 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -w" } */

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)) ?: d)
      ;
}