1 ; RUN: llvm-pdbutil dump -globals \
2 ; RUN: -global-name=main \
3 ; RUN: -global-name="operator delete" \
4 ; RUN: -global-name=abcdefg \
5 ; RUN: %p/Inputs/global-name-lookup.pdb | FileCheck %s
7 ; RUN: llvm-pdbutil dump -globals \
8 ; RUN: -global-name=OvlGlobalFn \
9 ; RUN: %p/Inputs/global-name-lookup.pdb | FileCheck --check-prefix=LASTBUCKET %s
12 CHECK-NEXT: ============================================================
13 CHECK-NEXT: Global Name `main`
14 CHECK-NEXT: 344 | S_PROCREF [size = 20] `main`
15 CHECK-NEXT: module = 1, sum name = 0, offset = 780
16 CHECK-NEXT: Global Name `operator delete`
17 CHECK-NEXT: 228 | S_PROCREF [size = 32] `operator delete`
18 CHECK-NEXT: module = 1, sum name = 0, offset = 200
19 CHECK-NEXT: 196 | S_PROCREF [size = 32] `operator delete`
20 CHECK-NEXT: module = 1, sum name = 0, offset = 52
21 CHECK-NEXT: Global Name `abcdefg`
22 CHECK-NEXT: (no matching records found)
24 LASTBUCKET: Global Symbols
25 LASTBUCKET-NEXT: ============================================================
26 LASTBUCKET-NEXT: Global Name `OvlGlobalFn`
27 LASTBUCKET-NEXT: 316 | S_PROCREF [size = 28] `OvlGlobalFn`
28 LASTBUCKET-NEXT: module = 1, sum name = 0, offset = 608
29 LASTBUCKET-NEXT: 288 | S_PROCREF [size = 28] `OvlGlobalFn`
30 LASTBUCKET-NEXT: module = 1, sum name = 0, offset = 464
31 LASTBUCKET-NEXT: 260 | S_PROCREF [size = 28] `OvlGlobalFn`
32 LASTBUCKET-NEXT: module = 1, sum name = 0, offset = 348