(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
debug/
ctf/
ctf-struct-2.c
       1  /* Test for compilation of self-referntial structs.
       2  
       3     Further, the compiler is expected to generate a single CTF struct type for
       4     struct dmx_dtdef (due to Type de-duplication at CTF generation).  */
       5  
       6  /* { dg-do compile )  */
       7  /* { dg-options "-O0 -gctf -dA" } */
       8  /* { dg-final { scan-assembler-times "ascii \"dmx_dtdef.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
       9  /* { dg-final { scan-assembler-times "ascii \"dtd_name.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      10  /* { dg-final { scan-assembler-times "ascii \"dtd_type.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      11  /* { dg-final { scan-assembler-times "ascii \"dmx_dtdef_t.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
      12  
      13  struct link
      14  {
      15    struct link * next;
      16  } * s_link;
      17  
      18  typedef long dmx_id_t;
      19  
      20  typedef struct dmx_dtdef
      21  {
      22    char * dtd_name;
      23    dmx_id_t dtd_type;
      24  } dmx_dtdef_t;
      25  
      26  typedef struct dmx_bundle
      27  {
      28    dmx_id_t dmb_type;
      29    dmx_dtdef_t * dmb_dtd;
      30  } dmx_bundle_t;
      31  
      32  dmx_bundle_t dbt;