1#as:
2#source: slice.c
3#objdump: --ctf=.ctf
4#ld: -shared --ctf-variables
5#name: Slice
6
7.*: +file format .*
8
9Contents of CTF section .ctf:
10
11  Header:
12    Magic number: dff2
13    Version: 4 \(CTF_VERSION_3\)
14    Compilation unit name: .*slice.c
15    Variable section:	0x0 -- 0x7 \(0x8 bytes\)
16    Type section:	0x8 -- 0xa3 \(0x9c bytes\)
17    String section:	.*
18#...
19  Variables:
20    slices ->  [0-9a-f]*: struct slices \(size 0x4\)
21
22  Types:
23#...
24     [0-9a-f]*: struct slices \(size 0x[0-9a-f]*\)
25        \[0x0\] \(ID 0x[0-9a-f]*\) \(kind 6\) struct slices \(aligned at 0x1\)
26            \[0x0\] \(ID 0x[0-9a-f]*\) \(kind 1\) int  one:1 \(aligned at 0x1, format 0x1, offset:bits 0x0:0x1\)
27            \[0x1\] \(ID 0x[0-9a-f]*\) \(kind 1\) int  two:2 \(aligned at 0x1, format 0x1, offset:bits 0x1:0x2\)
28            \[0x3\] \(ID 0x[0-9a-f]*\) \(kind 1\) int  six:6 \(aligned at 0x1, format 0x1, offset:bits 0x3:0x6\)
29            \[0x9\] \(ID 0x[0-9a-f]*\) \(kind 1\) int  ten:10 \(aligned at 0x2, format 0x1, offset:bits 0x9:0xa\)
30#...
31