Add tofix test (path lookup not supported by grammar)
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 29 Jul 2011 17:10:15 +0000 (13:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 29 Jul 2011 17:15:09 +0000 (13:15 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/metadata/ctf-test/tofix/ctf-path.txt [new file with mode: 0644]

diff --git a/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt b/formats/ctf/metadata/ctf-test/tofix/ctf-path.txt
new file mode 100644 (file)
index 0000000..718d763
--- /dev/null
@@ -0,0 +1,36 @@
+typealias integer { size = 8; align = 8; signed = false; base = hex; } := uint8_t;
+typealias integer { size = 32; align = 8; signed = false; base = hex;  } := uint32_t;
+
+trace {
+    major = 1;
+    minor = 2;
+    byte_order = le;
+    uuid = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa";
+    packet.header := struct  {
+                        uint32_t magic;                        
+                     };
+};
+
+variant var {
+    uint8_t small;
+    uint32_t big;
+};
+
+enum select : uint8_t { small = 0, big = 1 };
+
+stream {
+    event.header := struct {
+        enum select a;
+    };
+};
+
+event {
+    name = event1;
+    fields := struct {
+       /*
+        * TODO: Only an identifier is expected in the variant/sequence
+        * tag. It should be a dotted expression (a path).
+        */
+        variant var <stream.event.header.a> b;
+    };
+};
This page took 0.024475 seconds and 4 git commands to generate.