1  /* CTF generation for pointer types.
       2  
       3     In this testcase, de-duplication of pointer types is exercised.  The
       4     compostition of structs in this testcase is such that when adding CTF for
       5     pointer type (link), the pointed-to-type type already adds the pointer to
       6     struct link.
       7     
       8     In this testcase, one CTF pointer type record is expected.  */
       9  
      10  /* { dg-do compile )  */
      11  /* { dg-options "-O0 -gctf -dA" } */
      12  
      13  /* { dg-final { scan-assembler-times "\[\t \]0xe000000\[\t \]+\[^\n\]*ctt_info" 1 } } */
      14  
      15  struct link;
      16  
      17  typedef struct items {
      18      struct link * link; 
      19      int str;
      20  } itemslist;
      21  
      22  itemslist il;
      23  
      24  struct link { struct link * next; };
      25