Make all traces explicitly support the CTF 1.8 spec
[ctf-testsuite.git] / tests / 1.8 / regression / stream / fail / out-of-bound-variant-selected-element / metadata
1 /* CTF 1.8 */
2 typealias integer { size = 8; align = 8; signed = false; base = hex; } := uint8_t;
3 typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t;
4
5 trace {
6 major = 1;
7 minor = 8;
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
16 event {
17 name = myevent;
18 fields := struct {
19 enum : uint8_t { sel0 = 0, sel1 = 1, sel2 = 2, } mytag;
20 variant <mytag> {
21 uint8_t sel0[300];
22 uint8_t sel1[200];
23 uint8_t sel2;
24 } v;
25 };
26 };
This page took 0.030619 seconds and 4 git commands to generate.