summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr80112.c
blob: 8d6ef3c88aab89dbe13b032a1ca5119485ab0964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR rtl-optimization/80112 */
/* { dg-do compile } */
/* { dg-options "-Os -fmodulo-sched" } */
/* { dg-require-effective-target label_values } */

void **a;

void
foo (int c)
{
  void *d[] = {&&e, &&f};
  a = d;
  switch (c)
    {
    f:
      c = 9;
      /* FALLTHRU */
    case 9:
      goto *a++;
    e:;
    }
}