1 ## Test that we print a warning for ELF, WASM, and COFF but still dump the contents for all.
3 # RUN: yaml2obj --docnum=1 %s -o %t_macho
4 # RUN: yaml2obj --docnum=2 %s -o %t_coff
5 # RUN: yaml2obj --docnum=3 %s -o %t_elf
6 # RUN: yaml2obj --docnum=4 %s -o %t_wasm
7 # RUN: yaml2obj --docnum=5 %s -o %t_xcoff
9 # RUN: llvm-readobj --syms --sort-symbols=type,name \
10 # RUN: %t_coff %t_elf %t_wasm %t_xcoff %t_macho 2>&1 | FileCheck %s \
11 # RUN: -DMSG="--sort-symbols is not supported yet for this format"
13 # CHECK: warning: '{{.+}}_coff': [[MSG]]
14 # CHECK: Format: COFF-ARM
15 # CHECK: warning: '{{.+}}_elf': [[MSG]]
16 # CHECK: Format: elf64-unknown
17 # CHECK: warning: '{{.+}}_wasm': [[MSG]]
19 # CHECK: warning: '{{.+}}_xcoff': [[MSG]]
20 # CHECK: Format: aixcoff-rs6000
21 # CHECK-NOT: warning '{{.+}}_macho': [[MSG]]
22 # CHECK: Format: Mach-O 64-bit x86-64
37 Machine: IMAGE_FILE_MACHINE_ARMNT
67 EntriesInSymbolTable: 1