[llvm-pdbdump] Resubmit "Add some tests for llvm-pdbdump".
[oota-llvm.git] / test / DebugInfo / PDB / pdbdump-symbol-format.test
1 ; RUN: llvm-pdbdump -all -hidden -group-by=compiland %p/Inputs/symbolformat.pdb | FileCheck --check-prefix=FORMAT %s
2
3 ; The format here is func [0x<rva_start>+<prologue_length> - 0x<rva_end>-<epilogue_length>]
4 ; FORMAT: test\DebugInfo\PDB\Inputs\symbolformat-fpo.obj
5 ; FORMAT-DAG: func [0x001130+0 - 0x001137-1] (VFrame) uint32_t __cdecl fpo_func(uint32_t)
6 ; FORMAT: d:\src\llvm\test\DebugInfo\PDB\Inputs\symbolformat.obj
7 ; FORMAT-DAG: func [0x001060+3 - 0x001067-2] (EBP) int32_t __cdecl _purecall()
8 ; FORMAT-DAG: func [0x001070+6 - 0x001099-4] (EBP) int32_t __cdecl main(int32_t, char**)
9 ; FORMAT-DAG: func [0x0010b0+7 - 0x0010c7-4] (EBP) void __thiscall A::A()
10 ; FORMAT-DAG: func [0x0010d0+7 - 0x0010ef-4] (EBP) void __thiscall B::B()
11 ; FORMAT-DAG: thunk [0x000010f6 - 0x000010fa] (Pcode) B::`vcall'{0}'
12 ; FORMAT-DAG: func [0x001100+7 - 0x00110b-4] (EBP) virtual void __thiscall B::PureFunc()
13 ; FORMAT-DAG: func [0x001110+7 - 0x00111b-4] (EBP) void __thiscall A::RegularFunc()
14 ; FORMAT-DAG: func [0x001120+7 - 0x00112b-4] (EBP) virtual void __thiscall A::VirtualFunc()