llvm/llvm/test/tools/llvm-nm/XCOFF/invalid-section-index.test

## Test the behavior of the symbol reference section.

# RUN: yaml2obj  %s -o %t.o
# RUN: llvm-nm %t.o 2>&1 | FileCheck %s -DFILE=%t.o

# CHECK:      llvm-nm{{(\.exe)?}}: warning: [[FILE]]: for symbol with index 0: the section index (4) is invalid
# CHECK-NEXT: 00000000 ? .text

--- !XCOFF
FileHeader:
  MagicNumber: 0x1DF
Sections:
  - Name: .text
Symbols:
  - Name:               .text
    Value:              0x0
    SectionIndex:       4
    Type:               0x0
    StorageClass:       C_STAT
    NumberOfAuxEntries: 1