modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr21356.c (about)

     1  /* { dg-require-effective-target indirect_jumps } */
     2  /* { dg-require-effective-target label_values } */
     3  
     4  int a;
     5  void* p;
     6  
     7  void foo (void)
     8  {
     9    switch (a)
    10    {
    11      a0: case 0:   p = &&a1;
    12      a1: case 1:   p = &&a2;
    13      a2: default:  p = &&a1;
    14    }
    15    goto *p;
    16  }