summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-02-27 18:58:23 +0000
committerJustin Bogner <mail@justinbogner.com>2015-02-27 18:58:23 +0000
commitac631cb03dd6731345ffb7c3ad9b4808585f9a30 (patch)
tree88e78f1fdb3738abc5b7b8fa47239a5b7c78ea74 /llvm/test/Object
parentfc44ca088182ed9ef2d34633ecd42667f6a2262a (diff)
downloadbcm5719-llvm-ac631cb03dd6731345ffb7c3ad9b4808585f9a30.tar.gz
bcm5719-llvm-ac631cb03dd6731345ffb7c3ad9b4808585f9a30.zip
Object: Test for reading kext bundles
In the review for r230567, it was pointed out we should really test the lib/Object part of that change. This does so using llvm-readobj. llvm-svn: 230779
Diffstat (limited to 'llvm/test/Object')
-rwxr-xr-xllvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64bin0 -> 4288 bytes
-rw-r--r--llvm/test/Object/kext.test7
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64 b/llvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64
new file mode 100755
index 00000000000..bf75d3041ce
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64
Binary files differ
diff --git a/llvm/test/Object/kext.test b/llvm/test/Object/kext.test
new file mode 100644
index 00000000000..8e7c3d14871
--- /dev/null
+++ b/llvm/test/Object/kext.test
@@ -0,0 +1,7 @@
+// Check that we understand kext bundles.
+// Test input generated by "clang -x c++ -fapple-kext -Wl,-kext /dev/null"
+
+RUN: llvm-readobj %p/Inputs/macho-empty-kext-bundle-x86-64 | FileCheck %s
+CHECK: Format: Mach-O 64-bit x86-64
+CHECK: Arch: x86_64
+CHECK: AddressSize: 64bit
OpenPOWER on IntegriCloud