Debian Codegraph @

gcc/testsuite/gcc.dg/debug/ctf/ctf-pointers-1.c

raw
1 /* CTF generation for pointer types.
2
3 In this testcase, two CTF pointer type records are expected
4 - int *
5 - struct foo_struct *
6 */
7
8 /* { dg-do compile } */
9 /* { dg-options "-O0 -gctf -dA" } */
10
11 /* { dg-final { scan-assembler-times "ascii \"foo_struct.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
12 /* { dg-final { scan-assembler-times "ascii \"int.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
13 /* { dg-final { scan-assembler-times "\[\t \]0xe000000\[\t \]+\[^\n\]*ctt_info" 2 } } */
14
15 int b = 44;
16 int * a = &b;
17
18 struct foo_struct
19 {
20 int bar_mem_1;
21 int bar_mem_2;
22 float d;
23 struct foo_struct *next;
24 };
25
26 struct foo_struct * node;