21 lines · plain
1## Test the behavior of the symbol reference section.2 3# RUN: yaml2obj %s -o %t.o4# RUN: llvm-nm %t.o 2>&1 | FileCheck %s -DFILE=%t.o5 6# CHECK: llvm-nm{{(\.exe)?}}: warning: [[FILE]]: for symbol with index 0: the section index (4) is invalid7# CHECK-NEXT: 00000000 ? .text8 9--- !XCOFF10FileHeader:11 MagicNumber: 0x1DF12Sections:13 - Name: .text14Symbols:15 - Name: .text16 Value: 0x017 SectionIndex: 418 Type: 0x019 StorageClass: C_STAT20 NumberOfAuxEntries: 121