gcc/testsuite/gcc.dg/torture/pr99694.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-w" } */ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | int a, b, c; |
| 7 | void d() { |
| 8 | uint16_t e; |
| 9 | int32_t *f; |
| 10 | int32_t *g; |
| 11 | if (a) { |
| 12 | int32_t *k; |
| 13 | for (;; *k += 1) { |
| 14 | int32_t **i = &f; |
| 15 | int32_t **l = &g; |
| 16 | for (e = 6; e; e++) { |
| 17 | g = k = f; |
| 18 | j: |
| 19 | **l = 0; |
| 20 | } |
| 21 | *i = (int32_t *) c; |
| 22 | } |
| 23 | } |
| 24 | uint16_t i = (uint16_t) &e; |
| 25 | b = i / 0; |
| 26 | goto j; |
| 27 | } |