gcc/testsuite/gcc.dg/pr80112.c
raw| 1 | /* PR rtl-optimization/80112 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-Os -fmodulo-sched" } */ |
| 4 | /* { dg-require-effective-target label_values } */ |
| 5 | |
| 6 | void **a; |
| 7 | |
| 8 | void |
| 9 | foo (int c) |
| 10 | { |
| 11 | void *d[] = {&&e, &&f}; |
| 12 | a = d; |
| 13 | switch (c) |
| 14 | { |
| 15 | f: |
| 16 | c = 9; |
| 17 | /* FALLTHRU */ |
| 18 | case 9: |
| 19 | goto *a++; |
| 20 | e:; |
| 21 | } |
| 22 | } |