1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/DebugInfo/PDB/pdbdump-global-lookup.test
Zachary Turner a246ab4562 [PDB] Fix another bug in globals stream name lookup.
When we're on the last bucket the computation is tricky.
We were failing when the last bucket contained multiple
matches.  Added a new test for this.

llvm-svn: 344081
2018-10-09 21:19:03 +00:00

33 lines
1.6 KiB
Plaintext

; RUN: llvm-pdbutil dump -globals \
; RUN: -global-name=main \
; RUN: -global-name="operator delete" \
; RUN: -global-name=abcdefg \
; RUN: %p/Inputs/global-name-lookup.pdb | FileCheck %s
; RUN: llvm-pdbutil dump -globals \
; RUN: -global-name=OvlGlobalFn \
; RUN: %p/Inputs/global-name-lookup.pdb | FileCheck --check-prefix=LASTBUCKET %s
CHECK: Global Symbols
CHECK-NEXT: ============================================================
CHECK-NEXT: Global Name `main`
CHECK-NEXT: 344 | S_PROCREF [size = 20] `main`
CHECK-NEXT: module = 1, sum name = 0, offset = 780
CHECK-NEXT: Global Name `operator delete`
CHECK-NEXT: 228 | S_PROCREF [size = 32] `operator delete`
CHECK-NEXT: module = 1, sum name = 0, offset = 200
CHECK-NEXT: 196 | S_PROCREF [size = 32] `operator delete`
CHECK-NEXT: module = 1, sum name = 0, offset = 52
CHECK-NEXT: Global Name `abcdefg`
CHECK-NEXT: (no matching records found)
LASTBUCKET: Global Symbols
LASTBUCKET-NEXT: ============================================================
LASTBUCKET-NEXT: Global Name `OvlGlobalFn`
LASTBUCKET-NEXT: 316 | S_PROCREF [size = 28] `OvlGlobalFn`
LASTBUCKET-NEXT: module = 1, sum name = 0, offset = 608
LASTBUCKET-NEXT: 288 | S_PROCREF [size = 28] `OvlGlobalFn`
LASTBUCKET-NEXT: module = 1, sum name = 0, offset = 464
LASTBUCKET-NEXT: 260 | S_PROCREF [size = 28] `OvlGlobalFn`
LASTBUCKET-NEXT: module = 1, sum name = 0, offset = 348