summaryrefslogtreecommitdiff
path: root/test/ObjectYAML/wasm/data_section.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/ObjectYAML/wasm/data_section.yaml')
-rw-r--r--test/ObjectYAML/wasm/data_section.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/ObjectYAML/wasm/data_section.yaml b/test/ObjectYAML/wasm/data_section.yaml
new file mode 100644
index 0000000000000..542d0efe42f3d
--- /dev/null
+++ b/test/ObjectYAML/wasm/data_section.yaml
@@ -0,0 +1,28 @@
+# RUN: yaml2obj %s | obj2yaml | FileCheck %s
+--- !WASM
+FileHeader:
+ Version: 0x00000001
+Sections:
+ - Type: MEMORY
+ Memories:
+ - Initial: 0x00000003
+ - Type: DATA
+ Segments:
+ - Index: 0
+ Offset:
+ Opcode: I32_CONST
+ Value: 4
+ Content: '10001000'
+...
+# CHECK: --- !WASM
+# CHECK: FileHeader:
+# CHECK: Version: 0x00000001
+# CHECK: Sections:
+# CHECK: - Type: DATA
+# CHECK: Segments:
+# CHECK: - Index: 0
+# CHECK: Offset:
+# CHECK: Opcode: I32_CONST
+# CHECK: Value: 4
+# CHECK: Content: '10001000'
+# CHECK: ...