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

     1  /* Related to PR 19484.  */
     2  /* { dg-require-effective-target trampolines } */
     3  
     4  extern void foo (void) __attribute__((noreturn));
     5  int n;
     6  
     7  void
     8  g (void)
     9  {
    10    __label__ lab;
    11    void h (void) { if (n == 2) goto lab; }
    12    void (*f1) (void) = foo;
    13    void (*f2) (void) = h;
    14  
    15    f2 ();
    16    if (n)
    17      f1 ();
    18    n = 1;
    19   lab:
    20    n++;
    21  }