Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-objdump / XCOFF / disassemble-traceback-table-warning.test
blob621d61513a8818a8d58c023e114c282491ae7e0f
1 ## Test that "llvm-objdump --traceback-table" warn when a function name's length is 0.
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: llvm-objdump -d --traceback-table --symbol-description %t.o 2>&1 |\
5 # RUN:   FileCheck -DFILE=%t.o --implicit-check-not="warning:" --check-prefixes=WARN %s
7 --- !XCOFF
8 FileHeader:
9   MagicNumber:       0x1DF
10 Sections:
11   - Name:            .text
12     Flags:           [ STYP_TEXT ]
13     SectionData:     "9421ffc0000000000000204080000201000000000000000400004164644e756d00000000"
14 Symbols:
15   - Name:            .AddNum
16     Value:           0
17     Section:         .text
18     Type:            0x20
19     StorageClass:    C_EXT
20     AuxEntries:
21       - Type:                   AUX_CSECT
22         SectionOrLength:        0x24
23         SymbolAlignmentAndType: 0x21
24         StorageMappingClass:    XMC_PR
26 # WARN: warning: '[[FILE]]': the length of the function name must be greater than zero if the isFuncNamePresent bit is set in the traceback table