aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-04 20:30:52 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-04 20:30:52 +0000
commit5152e4fb06cbf45d8f0758542fddfdb21e4026e0 (patch)
tree5a828e91dc250d6bc0fe3eba983d4c78b42a3aa2 /test
parente50faa754b946d5240c1d4e84e64b7e84d4e27b1 (diff)
Add back parsing of header charactestics.
It had been dropped during the switch to yaml::IO. Also add a test going from yaml2obj to llvm-readobj. It can be extended as we add more fields/formats to yaml2obj. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Object/Inputs/COFF/i386.yaml1
-rw-r--r--test/Object/yaml2obj-readobj.test5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/Object/Inputs/COFF/i386.yaml b/test/Object/Inputs/COFF/i386.yaml
index ca902220c1..aec7a5813c 100644
--- a/test/Object/Inputs/COFF/i386.yaml
+++ b/test/Object/Inputs/COFF/i386.yaml
@@ -1,5 +1,6 @@
header: !Header
Machine: IMAGE_FILE_MACHINE_I386 # (0x14c)
+ Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
sections:
- !Section
diff --git a/test/Object/yaml2obj-readobj.test b/test/Object/yaml2obj-readobj.test
new file mode 100644
index 0000000000..545ccc48aa
--- /dev/null
+++ b/test/Object/yaml2obj-readobj.test
@@ -0,0 +1,5 @@
+RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-readobj -file-headers - | FileCheck %s --check-prefix COFF-I386
+
+// COFF-I386: Characteristics [ (0x200)
+// COFF-I386-NEXT: IMAGE_FILE_DEBUG_STRIPPED (0x200)
+// COFF-I386-NEXT: ]