(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
debug/
ctf/
ctf-variables-3.c
       1  /* CTF generation for extern variable with defining and non-defining decl
       2     in the same CU.
       3  
       4     This testcase checks the case when a non-defining decl is followed by
       5     a defining decl for the same variable.  See PR debug/105089.
       6     
       7     In this testcase,  although two CTF array types are generated, only a
       8     single CTF variable and a single entry in the CTF object info section
       9     are expected.  */
      10  
      11  /* { dg-do compile )  */
      12  /* { dg-options "-O0 -gctf -dA" } */
      13  
      14  /* { dg-final { scan-assembler-times "0x12000000\[\t \]+\[^\n\]*ctt_info" 2 } } */
      15  
      16  /* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*cta_nelems" 1 } } */
      17  /* { dg-final { scan-assembler-times "\[\t \]0x8\[\t \]+\[^\n\]*cta_nelems" 1 } } */
      18  /* { dg-final { scan-assembler-times "ctv_name" 1 } } */
      19  /* { dg-final { scan-assembler-times "objtinfo_var_type" 1 } } */
      20  
      21  extern const char _CTF_NEWSTR[];
      22  const char _CTF_NEWSTR[] = "ctfinfo";