aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr100512.c
blob: 0c1fc63b99aff369ccf6f8fce432c421e6277402 (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
/* { dg-do compile } */
/* { dg-options "-O2 -Wno-pointer-to-int-cast" } */

#include <stdint.h>
int a;
void b() {
  int16_t *c;
  uint16_t d = 2;
  if (0 == d) {
    uint64_t e;
    uint64_t *f = &e;
    for (;;) {
      if (e += 0 >= 0)
        for (;;)
          ;
    g:
      for (; a;) {
        int16_t i = (int16_t) &d;
        *c = i && *f;
      }
    }
  }
  goto g;
}