1  /* CTF generation for static variables inside a function.
       2  
       3     In this testcase, CTF record for bstatic is NOT expected.  CTF generation
       4     is only carried out for variables at file-scope or global-scope.  */
       5  
       6  /* { dg-do compile )  */
       7  /* { dg-options "-O0 -gctf -dA" } */
       8  
       9  /* { dg-final { scan-assembler-times "ctv_name" 0 } } */
      10  /* { dg-final { scan-assembler-times "ascii \"bstatic.0\"\[\t \]+\[^\n\]*ctf_string" 0 } } */
      11  
      12  int foo (int a)
      13  {
      14    static int bstatic = 3;
      15    return a + bstatic;
      16  }