1  /* CTF generation of function pointers.
       2  
       3     In this testcase,  there is a single function type expected.  */
       4  
       5  /* { dg-do compile )  */
       6  /* { dg-options "-O0 -gctf -dA" } */
       7  /* { dg-final { scan-assembler-times "\[\t \]0x16000001\[\t \]+\[^\n\]*ctt_info" 1 } } */
       8  /* { dg-final { scan-assembler-times "ascii \"foo_init_callback.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
       9  /* { dg-final { scan-assembler-times "ascii \"fn.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      10  
      11  struct foo;
      12  
      13  typedef void (* foo_init_callback) (struct foo *f1);
      14  
      15  struct foo
      16  {
      17    /* Function to call to initialize.  */
      18    foo_init_callback fn;
      19  };
      20  
      21  struct foo f;