1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -fno-guess-branch-probability -w" } */
       3  /* { dg-require-effective-target indirect_jumps } */
       4  
       5  struct __jmp_buf_tag { };
       6  typedef struct __jmp_buf_tag jmp_buf[1];
       7  struct globals { jmp_buf listingbuf; };
       8  extern struct globals *const ptr_to_globals;
       9  void foo()
      10  {
      11      if ( _setjmp ( ((*ptr_to_globals).listingbuf )))
      12  	;
      13  }