Files
clang-p2996/llvm/test/DebugInfo/PDB/using-namespace.test
Fangrui Song e29e30b139 [llvm-readobj] Change -long-option to --long-option in tests. NFC
We use both -long-option and --long-option in tests. Switch to --long-option for consistency.

In the "llvm-readelf" mode, -long-option is discouraged as it conflicts with grouped short options and it is not accepted by GNU readelf.

While updating the tests, change llvm-readobj -s to llvm-readobj -S to reduce confusion ("s" is --section-headers in llvm-readobj but --symbols in llvm-readelf).

llvm-svn: 359649
2019-05-01 05:27:20 +00:00

52 lines
1.7 KiB
Plaintext

# RUN: yaml2obj < %s > %t.obj
# RUN: llvm-readobj --codeview %t.obj | FileCheck %s
# CHECK: Kind: S_UNAMESPACE (0x1124)
# CHECK-NEXT: Namespace: __vc_attributes
--- !COFF
header:
Machine: IMAGE_FILE_MACHINE_AMD64
Characteristics: [ ]
sections:
- Name: '.debug$S'
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
Alignment: 1
Subsections:
- !Symbols
Records:
- Kind: S_OBJNAME
ObjNameSym:
Signature: 0
ObjectName: 'SimpleFunction.obj'
- Kind: S_COMPILE3
Compile3Sym:
Flags: [ SecurityChecks, HotPatch ]
Machine: X64
FrontendMajor: 19
FrontendMinor: 14
FrontendBuild: 26433
FrontendQFE: 0
BackendMajor: 19
BackendMinor: 14
BackendBuild: 26433
BackendQFE: 0
Version: 'Microsoft (R) Optimizing Compiler'
- Kind: S_UNAMESPACE
UsingNamespaceSym:
Namespace: __vc_attributes
- Kind: S_UNAMESPACE
UsingNamespaceSym:
Namespace: helper_attributes
- Kind: S_UNAMESPACE
UsingNamespaceSym:
Namespace: atl
- Kind: S_UNAMESPACE
UsingNamespaceSym:
Namespace: std
- !StringTable
Strings:
- 'SimpleFunction.c'
symbols:
...