Debian Codegraph @

gcc/testsuite/gcc.dg/debug/ctf/ctf-typedef-2.c

raw
1 /* CTF_K_TYPEDEF record generation.
2
3 In this testcase, typedef of type void should be generated. */
4
5 /* { dg-do compile } */
6 /* { dg-options "-O0 -gctf -dA" } */
7
8 /* { dg-final { scan-assembler-times "0x2a000000\[\t \]+\[^\n\]*ctt_info" 1 } } */
9 /* { dg-final { scan-assembler-times "ascii \"foo_void_type.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
10 /* { dg-final { scan-assembler-times "ascii \"void.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
11
12 typedef void foo_void_type;
13
14 struct bar
15 {
16 int a;
17 foo_void_type *b;
18 };
19
20 struct bar c;