aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr100349.c
blob: ec34950165dfb8237bc6aa0db8d147491f2389f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do compile }
// { dg-options "-O2" }

#include <stdint.h>
uint8_t a;
void
b(int8_t c) {
  int d;
e:
  uint32_t f;
  for (;;)
    for (c = 10; c; c++)
      if (0 > (a = c) ?: d) {
        f = a;
        goto e;
      }
}