summaryrefslogtreecommitdiffstats
path: root/llvm/test/ObjectYAML/MachO/mach_header.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/ObjectYAML/MachO/mach_header.yaml')
-rw-r--r--llvm/test/ObjectYAML/MachO/mach_header.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/ObjectYAML/MachO/mach_header.yaml b/llvm/test/ObjectYAML/MachO/mach_header.yaml
new file mode 100644
index 00000000000..722a00be6f8
--- /dev/null
+++ b/llvm/test/ObjectYAML/MachO/mach_header.yaml
@@ -0,0 +1,23 @@
+# RUN: yaml2obj -format=macho %s | obj2yaml | FileCheck %s
+
+--- !mach-o
+FileHeader:
+ magic: 0xFEEDFACE
+ cputype: 0x00000007
+ cpusubtype: 0x80000003
+ filetype: 0x00000002
+ ncmds: 0
+ sizeofcmds: 0
+ flags: 0x00218085
+...
+
+# CHECK: --- !mach-o
+# CHECK: FileHeader:
+# CHECK: magic: 0xFEEDFACE
+# CHECK: cputype: 0x00000007
+# CHECK: cpusubtype: 0x80000003
+# CHECK: filetype: 0x00000002
+# CHECK: ncmds: 0
+# CHECK: sizeofcmds: 0
+# CHECK: flags: 0x00218085
+# CHECK: ...
OpenPOWER on IntegriCloud