gcc/testsuite/gcc.dg/torture/pr90071.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target indirect_jumps } */ |
| 3 | /* { dg-require-effective-target label_values } */ |
| 4 | |
| 5 | int a; |
| 6 | static int b; |
| 7 | |
| 8 | void |
| 9 | foo () |
| 10 | { |
| 11 | int d; |
| 12 | int e = (int) (__INTPTR_TYPE__) &&f; |
| 13 | void *g = &&h; |
| 14 | h: ++e; |
| 15 | if (a) |
| 16 | i: goto *g; |
| 17 | for (;;) |
| 18 | { |
| 19 | e = 0; |
| 20 | if (b) |
| 21 | goto i; |
| 22 | } |
| 23 | f: |
| 24 | goto *(void*)(__INTPTR_TYPE__)({ d || e < 0 || e >= 2; }); |
| 25 | &e; |
| 26 | } |