1 /* Test for compilation of self-referntial structs.
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). */
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 } } */
18 typedef long dmx_id_t
;
20 typedef struct dmx_dtdef
26 typedef struct dmx_bundle
29 dmx_dtdef_t
* dmb_dtd
;