summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2017-09-20 09:57:11 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2017-09-20 09:57:11 +0000
commitcefe7e1142c082816dc3da743e4be45a2fdfe723 (patch)
tree5ce18fc0ca04e5f9c8604b43035e7b89faa6f6ac /llvm/test/Object
parentb0f0a1ea03b55df2c0fcd7e7d56006b7a849124b (diff)
downloadbcm5719-llvm-cefe7e1142c082816dc3da743e4be45a2fdfe723.tar.gz
bcm5719-llvm-cefe7e1142c082816dc3da743e4be45a2fdfe723.zip
[yaml2obj] - Don't crash on invalid document.
Previously jaml2obj would segfault on empty document. (without yaml description). Patch fixes the issue. Differential revision: https://reviews.llvm.org/D38036 llvm-svn: 313746
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/yaml2obj-invalid.yaml2
1 files changed, 2 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..d1f4fa26d82
--- /dev/null
+++ b/llvm/test/Object/yaml2obj-invalid.yaml
@@ -0,0 +1,2 @@
+# RUN: not yaml2obj %s 2>&1 | FileCheck %s
+# CHECK: Unknown document type!
OpenPOWER on IntegriCloud