pdbdump-global-lookup.test
1.56 KB
; 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