aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-objdump/MachO/truncated-section.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-objdump/MachO/truncated-section.test')
-rw-r--r--llvm/test/tools/llvm-objdump/MachO/truncated-section.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/MachO/truncated-section.test b/llvm/test/tools/llvm-objdump/MachO/truncated-section.test
new file mode 100644
index 000000000000..e9fe75da71af
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/MachO/truncated-section.test
@@ -0,0 +1,7 @@
+RUN: llvm-objdump -macho -d %p/Inputs/truncated-section.dylib.macho-x86_64 | FileCheck %s
+
+CHECK: _func:
+CHECK: retq
+CHECK: retq
+
+CHECK: section data ends, _func2 lies outside valid range