Make all traces explicitly support the CTF 1.8 spec
[ctf-testsuite.git] / tests / 1.8 / regression / metadata / fail / enum-untyped-string / metadata
CommitLineData
745d71c9
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;
4
5/* This is ugly: 'int' is defined as a 'string'. */
6typealias string { encoding = ascii; } := int;
7
8trace {
83fcdab0
FD
9 major = 1;
10 minor = 8;
745d71c9
MD
11 uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
12 byte_order = le;
13 packet.header := struct {
14 uint32_t magic;
15 uint8_t uuid[16];
16 };
17};
18
19event {
20 name = string;
21 fields := struct {
22 /* An untyped enum is typed with "int" (a string). */
23 enum {
24 VAL1
25 } field;
26 };
27};
28
This page took 0.023132 seconds and 4 git commands to generate.