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

#include <stdint.h>
uint8_t a;
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;
      }
}