[llvm] dc4c8a3 - [llvm-objdump][test] Recommit unimplemented-features.test
via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 20:48:21 PDT 2020
Author: vgxbj
Date: 2020-04-05T11:47:27+08:00
New Revision: dc4c8a3c9c405c015be729dd5e5cd68ce2538f9d
URL: https://github.com/llvm/llvm-project/commit/dc4c8a3c9c405c015be729dd5e5cd68ce2538f9d
DIFF: https://github.com/llvm/llvm-project/commit/dc4c8a3c9c405c015be729dd5e5cd68ce2538f9d.diff
LOG: [llvm-objdump][test] Recommit unimplemented-features.test
Recommit test case that removed by rG685bf42e9e0cc79cff6d26cf44749db98f148270
Added:
llvm/test/tools/llvm-objdump/unimplemented-features.test
Modified:
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-objdump/unimplemented-features.test b/llvm/test/tools/llvm-objdump/unimplemented-features.test
new file mode 100644
index 000000000000..2559d991314a
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/unimplemented-features.test
@@ -0,0 +1,31 @@
+## Test dumping dynamic symbols reports a warning if the operation is unsupported for the file format.
+# RUN: yaml2obj %s --docnum=1 -o %t.macho.o
+# RUN: llvm-objdump --dynamic-syms %t.macho.o 2>&1 | \
+# RUN: FileCheck %s
+# RUN: yaml2obj %s --docnum=2 -o %t.coff.o
+# RUN: llvm-objdump --dynamic-syms %t.coff.o 2>&1 | \
+# RUN: FileCheck %s
+# RUN: llvm-objdump --dynamic-syms %p/XCOFF/Inputs/xcoff-section-headers.o 2>&1 | \
+# RUN: FileCheck %s
+
+# CHECK:DYNAMIC SYMBOL TABLE:
+# CHECK-NEXT: warning: {{.*}}: this operation is not currently supported for this file format
+# CHECK-EMPTY:
+
+--- !mach-o
+FileHeader:
+ magic: 0xFEEDFACF
+ cputype: 0x01000007
+ cpusubtype: 0x80000003
+ filetype: 0x00000002
+ ncmds: 0
+ sizeofcmds: 0
+ flags: 0x00218085
+ reserved: 0x00000000
+
+--- !COFF
+header:
+ Machine: IMAGE_FILE_MACHINE_AMD64
+ Characteristics: []
+sections: []
+symbols: []
More information about the llvm-commits
mailing list