gcc/testsuite/gcc.dg/torture/pr114048.c
raw| 1 | /* { dg-do compile } */ |
| 2 | |
| 3 | typedef struct { |
| 4 | void *child[2]; |
| 5 | char otherbits; |
| 6 | } critbit0_node; |
| 7 | |
| 8 | int allprefixed_traverse(char *top) |
| 9 | { |
| 10 | if (top) |
| 11 | { |
| 12 | critbit0_node *q = (void *)top - 1; |
| 13 | int direction = 0; |
| 14 | for (;; ++direction) |
| 15 | switch (allprefixed_traverse(q->child[direction])) |
| 16 | { |
| 17 | case 1: |
| 18 | break; |
| 19 | case 0: |
| 20 | return 0; |
| 21 | default: |
| 22 | return 1; |
| 23 | } |
| 24 | } |
| 25 | } |