Debian Codegraph @

gcc/testsuite/gcc.dg/debug/ctf/ctf-objt-index-1.c

raw
1 /* CTF objext index sub-section.
2
3 An object index sub-section in the CTF section contains the offset to the
4 string name of the global object symbols. The number of entries in the
5 obj info section and objt index section are always the same.
6
7 In this testcase, 4 records in the object index section are expected. */
8
9 /* { dg-do compile } */
10 /* { dg-options "-O0 -gctf -dA" } */
11
12 /* { dg-final { scan-assembler-times "objtinfo_name" 4 } } */
13 /* { dg-final { scan-assembler-times "objtinfo_var_type" 4 } } */
14 /* { dg-final { scan-assembler-times "ascii \"a.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
15 /* { dg-final { scan-assembler-times "ascii \"b.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
16 /* { dg-final { scan-assembler-times "ascii \"a1.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
17 /* { dg-final { scan-assembler-times "ascii \"d_instance.0\"\[\t \]+\[^\n\]*ctf_string" 1 } } */
18
19 static int b = 33;
20
21 int a = 44;
22 int a1[2] = {22, 33};
23
24 struct d
25 {
26 int d1;
27 int d2;
28 };
29
30 struct d d_instance;