(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
debug/
ctf/
ctf-func-index-1.c
       1  /* CTF function index sub-section.
       2  
       3     A function index sub-section in the CTF section contains the offset to the
       4     string name of the global function symbols.  The number of entries in the
       5     func info section and the func index section are always the same.
       6  
       7     In this testcase, 2 records in the function index section are expected.  */
       8  
       9  /* { dg-do compile )  */
      10  /* { dg-options "-O0 -gctf -dA" } */
      11  
      12  /* { dg-final { scan-assembler-times "funcinfo_name" 2 } } */
      13  /* { dg-final { scan-assembler-times "funcinfo_func_type" 2 } } */
      14  /* { dg-final { scan-assembler-times "ascii \"bar.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      15  /* { dg-final { scan-assembler-times "ascii \"foo.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      16  
      17  int foo (void)
      18  {
      19    return 0;
      20  }
      21  
      22  int bar (int a)
      23  {
      24    return 33 + a;
      25  }