summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2016-04-27 20:37:06 +0000
committerKevin Enderby <enderby@apple.com>2016-04-27 20:37:06 +0000
commit60c4e6aafa8904eecb79a2109ed4c8b8be942005 (patch)
tree97f14f2148367c35222534bfa46ecf7429deb1f1
parent65572afea88a9c8211df5ecbcf52469d90b4ea4f (diff)
downloadbcm5719-llvm-60c4e6aafa8904eecb79a2109ed4c8b8be942005.tar.gz
bcm5719-llvm-60c4e6aafa8904eecb79a2109ed4c8b8be942005.zip
Add a test case for the crash fixed with r267037. David Blaikie said it would be nice to have!
This was crashing llvm-objdump with -macho -objc-meta-data when trying dump a non-existent section. So the test binary is simply created from an empty .s file compiled with: clang -arch armv7 empty.s -c llvm-svn: 267782
-rw-r--r--llvm/test/tools/llvm-objdump/Inputs/empty.macho-armv7bin0 -> 152 bytes
-rw-r--r--llvm/test/tools/llvm-objdump/macho-objc-meta-data.test3
2 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/Inputs/empty.macho-armv7 b/llvm/test/tools/llvm-objdump/Inputs/empty.macho-armv7
new file mode 100644
index 00000000000..ab6c053e737
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/Inputs/empty.macho-armv7
Binary files differ
diff --git a/llvm/test/tools/llvm-objdump/macho-objc-meta-data.test b/llvm/test/tools/llvm-objdump/macho-objc-meta-data.test
new file mode 100644
index 00000000000..e659e7e5771
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/macho-objc-meta-data.test
@@ -0,0 +1,3 @@
+# RUN: llvm-objdump -macho -objc-meta-data %p/Inputs/empty.macho-armv7 | FileCheck %s
+
+# CHECK: empty.macho-armv7:
OpenPOWER on IntegriCloud