2018-10-08 12:19:16 +08:00
|
|
|
; RUN: llvm-pdbutil dump -globals \
|
|
|
|
; RUN: -global-name=main \
|
2018-10-10 05:19:03 +08:00
|
|
|
; RUN: -global-name="operator delete" \
|
2018-10-08 12:19:16 +08:00
|
|
|
; RUN: -global-name=abcdefg \
|
2018-10-10 05:19:03 +08:00
|
|
|
; RUN: %p/Inputs/global-name-lookup.pdb | FileCheck %s
|
2018-10-08 12:19:16 +08:00
|
|
|
|
2018-10-10 05:19:03 +08:00
|
|
|
; RUN: llvm-pdbutil dump -globals \
|
|
|
|
; RUN: -global-name=OvlGlobalFn \
|
|
|
|
; RUN: %p/Inputs/global-name-lookup.pdb | FileCheck --check-prefix=LASTBUCKET %s
|
2018-10-09 06:38:27 +08:00
|
|
|
|
2018-10-08 12:19:16 +08:00
|
|
|
CHECK: Global Symbols
|
|
|
|
CHECK-NEXT: ============================================================
|
|
|
|
CHECK-NEXT: Global Name `main`
|
2018-10-10 05:19:03 +08:00
|
|
|
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
|
2018-10-08 12:19:16 +08:00
|
|
|
CHECK-NEXT: Global Name `abcdefg`
|
2018-10-10 05:19:03 +08:00
|
|
|
CHECK-NEXT: (no matching records found)
|
2018-10-09 06:38:27 +08:00
|
|
|
|
2018-10-10 05:19:03 +08:00
|
|
|
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
|