gcc/testsuite/gcc.dg/pr49994-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Os -fsched2-use-superblocks -g" } */ |
| 3 | /* { dg-require-effective-target nonlocal_goto } */ |
| 4 | |
| 5 | void x (int a) |
| 6 | { |
| 7 | __label__ xlab; |
| 8 | void y (int b) |
| 9 | { |
| 10 | switch (b) |
| 11 | { |
| 12 | case 1: |
| 13 | goto xlab; |
| 14 | case 2: |
| 15 | goto xlab; |
| 16 | } |
| 17 | } |
| 18 | y (a); |
| 19 | xlab:; |
| 20 | } |