Add enumeration corner-cases tests
[ctf-testsuite.git] / tests / 1.8 / regression / metadata / pass / enum-multi-label / metadata
CommitLineData
2189a78f
MD
1/* CTF 1.8 */
2typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t;
3typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t;
4typealias integer { size = 32; align = 32; signed = true; base = hex; } := TYPE;
5
6trace {
7 major = 0;
8 minor = 1;
9 uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
10 byte_order = le;
11 packet.header := struct {
12 uint32_t magic;
13 uint8_t uuid[16];
14 };
15};
16
17/* It is valid to have many labels mapping to a single value. */
18event {
19 name = string;
20 fields := struct {
21 enum : TYPE {
22 VAL1 = 2,
23 VAL2 = 2,
24 VAL3 = 2,
25 VAL4 = 2,
26 } field;
27 };
28};
This page took 0.023076 seconds and 4 git commands to generate.