llvm-6502/test/tools/llvm-readobj/coff-file-sections-reading.test
Saleem Abdulrasool 30e7a0ae04 tools: fix invalid printing, buffer overrun in llvm-readobj
All auxiliary records are consumed when accessing a File record.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206354 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-16 04:15:29 +00:00

19 lines
488 B
Plaintext

RUN: yaml2obj %p/Inputs/file-multiple-aux-records.yaml | llvm-readobj -t - | FileCheck %s
CHECK: Symbols [
CHECK: Symbol {
CHECK: Name: .file
CHECK: Value: 0
CHECK: Section: (65534)
CHECK: BaseType: Null (0x0)
CHECK: ComplexType: Null (0x0)
CHECK: StorageClass: File (0x67)
CHECK: AuxSymbolCount: 3
CHECK: AuxFileRecord {
CHECK: FileName: first-section-has-eighteen-characters.asm
CHECK: }
CHECK-NOT: AuxFileRecord {
CHECK: }
CHECK: ]