Make all traces explicitly support the CTF 1.8 spec
[ctf-testsuite.git] / tests / 1.8 / regression / stream / fail / variant-out-of-unknown-enum-selector / metadata
CommitLineData
d215ab97
MD
1/* CTF 1.8 */
2typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t;
3typealias integer { size = 32; align = 8; signed = false; base = hex; } := uint32_t;
4
5trace {
83fcdab0
FD
6 major = 1;
7 minor = 8;
d215ab97
MD
8 uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
9 byte_order = le;
10 packet.header := struct {
11 uint32_t magic;
12 uint8_t uuid[16];
13 };
14};
15
16event {
17 name = test;
18 fields := struct {
19 enum : uint8_t { sel1 = 0, sel2 = 1, sel3 = 2, } selector;
20 variant <selector> {
21 uint32_t sel1;
22 /* missing sel2 */
23 uint32_t sel3;
24 } v;
25 };
26};
This page took 0.023282 seconds and 4 git commands to generate.