1#as:
2#source: cycle-1.c
3#source: A.c
4#source: B.c
5#source: C.c
6#objdump: --ctf=.ctf
7#ld: -shared --ctf-variables
8#name: Cycle 1
9
10.*: +file format .*
11
12Contents of CTF section .ctf:
13
14  Header:
15    Magic number: dff2
16    Version: 4 \(CTF_VERSION_3\)
17    Variable section:	0x0 -- 0x1f \(0x20 bytes\)
18    Type section:	0x20 -- 0xc7 \(0xa8 bytes\)
19    String section:	.*
20
21  Labels:
22
23  Data objects:
24
25  Function objects:
26
27  Variables:
28#...
29  Types:
30#...
31     [0-9a-f]*: struct cycle_1 \(.*
32        \[0x0\] \(ID 0x[0-9a-f]*\) \(kind 6\) struct cycle_1 \(.*
33            \[0x0\] \(ID 0x[0-9a-f]*\) \(kind 3\) struct A \* a \(.*
34            \[0x[0-9a-f]*\] \(ID 0x[0-9a-f]*\) \(kind 3\) struct B \* b \(.*
35            \[0x[0-9a-f]*\] \(ID 0x[0-9a-f]*\) \(kind 3\) struct cycle_1 \* next \(.*
36#...
37