71d6c18c9eb1a643fdfd8824196abc1ed9519cd2
[ctf-testsuite.git] / tests / 1.9 / pass / string-literal-escape / metadata
1 /* CTF 1.8 */
2 typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t;
3 typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t;
4
5 trace {
6 major = 0;
7 minor = 1;
8 test2 = "?\x20\040\123\0?";
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 /* use babeltrace -f trace:hostname to print. */
18
19 /*
20 * Expected:
21
22 abc " hex: A, #, #, #1,
23 oct: A, #, #, #1,
24
25 */
26
27 env {
28 hostname = "\nabc \" hex: \x41, \x23, \x023, \x0231,\noct: \101, \043, \43, \0431, \0NOT SEEN";
29 };
30
31 stream {
32 packet.context := struct {
33 uint32_t content_size;
34 uint32_t packet_size;
35 };
36 };
37
38 event {
39 name = string;
40 fields := struct { string str; };
41 };
This page took 0.030812 seconds and 3 git commands to generate.