summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-09-21 08:25:59 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-09-21 08:25:59 +0000
commit3674fb6f2c061250f4f40b7f261a16b0595a3b6a (patch)
tree2240d2b0ad53d9141496d8e57fb507dd7b99834d /llvm/test/Object
parent5536a01ad24973c93fd39f227e814f98f8bf86d7 (diff)
downloadbcm5719-llvm-3674fb6f2c061250f4f40b7f261a16b0595a3b6a.tar.gz
bcm5719-llvm-3674fb6f2c061250f4f40b7f261a16b0595a3b6a.zip
[yaml2obj] - Don't crash on one more invalid document.
This fixes one more crash I faced. Testcase contains minimal reduced case. Differential revision: https://reviews.llvm.org/D38082 llvm-svn: 313868
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/yaml2obj-invalid.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Object/yaml2obj-invalid.yaml b/llvm/test/Object/yaml2obj-invalid.yaml
new file mode 100644
index 00000000000..fba4ad81407
--- /dev/null
+++ b/llvm/test/Object/yaml2obj-invalid.yaml
@@ -0,0 +1,4 @@
+AAA: | BBB
+
+# RUN: not yaml2obj %s 2>&1 | FileCheck %s
+# CHECK: Map value must not be empty
OpenPOWER on IntegriCloud