Make all traces explicitly support the CTF 1.8 spec
[ctf-testsuite.git] / tests / 1.8 / regression / metadata / pass / variant-two-levels / metadata
CommitLineData
258d968e
MD
1/* CTF 1.8 */
2typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t;
3typealias integer { size = 16; align = 8; signed = false; base = 10; } := uint16_t;
4typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t;
5
6trace {
83fcdab0
FD
7 major = 1;
8 minor = 8;
258d968e
MD
9 uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
10 byte_order = le;
11 packet.header := struct {
12 uint32_t magic;
13 uint8_t uuid[0x10];
14 };
15};
16
17struct Mystruct {
18enum : uint32_t { sel1, sel2, sel3 } tag;
19
20variant<tag> {
21 struct {
22 variant<tag> {
23 uint8_t sel1;
24 uint8_t sel2;
25 uint8_t sel3;
26 } _;
27 } sel1;
28 struct {
29 variant<tag> {
30 uint16_t sel1;
31 uint16_t sel2;
32 uint16_t sel3;
33 } _;
34 } sel2;
35 struct {
36 variant<tag> {
37 uint32_t sel1;
38 uint32_t sel2;
39 uint32_t sel3;
40 } _;
41 } sel3;
42} field;
43
44};
This page took 0.023362 seconds and 4 git commands to generate.