testsuite: debug: fix dejagnu directive syntax
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / ctf / ctf-struct-2.c
blob3a65013a3f49fd978d8f244d9224f468b1545e0f
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 } } */
13 struct link
15 struct link * next;
16 } * s_link;
18 typedef long dmx_id_t;
20 typedef struct dmx_dtdef
22 char * dtd_name;
23 dmx_id_t dtd_type;
24 } dmx_dtdef_t;
26 typedef struct dmx_bundle
28 dmx_id_t dmb_type;
29 dmx_dtdef_t * dmb_dtd;
30 } dmx_bundle_t;
32 dmx_bundle_t dbt;