summaryrefslogtreecommitdiff
path: root/test/COFF/pdb-import-gc.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'test/COFF/pdb-import-gc.yaml')
-rw-r--r--test/COFF/pdb-import-gc.yaml20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/COFF/pdb-import-gc.yaml b/test/COFF/pdb-import-gc.yaml
index 80484cb75f4f0..8f50a111411cc 100644
--- a/test/COFF/pdb-import-gc.yaml
+++ b/test/COFF/pdb-import-gc.yaml
@@ -1,7 +1,7 @@
# RUN: yaml2obj %s -o %t.obj
# RUN: lld-link %t.obj %S/Inputs/pdb-import-gc.lib -debug -entry:main \
-# RUN: -nodefaultlib -debug -out:%t.exe -pdb:%t.pdb
-# RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck %s
+# RUN: -nodefaultlib -opt:ref -out:%t.exe -pdb:%t.pdb
+# RUN: llvm-pdbutil dump -globals -symbols %t.pdb | FileCheck %s
# This tests the case where an __imp_ chunk is discarded by linker GC. The debug
# info may refer to the __imp_ symbol still.
@@ -11,12 +11,16 @@
# int discarded() { return __wc_mb_cur; }
# int main() { return g2; }
-# CHECK: Symbols
-# CHECK: ============================================================
-# CHECK: Mod 0000 | `{{.*}}pdb-import-gc.yaml.tmp.obj`:
-# CHECK: 4 | S_GDATA32 [size = 32] `__imp___wc_mb_cur`
-# CHECK-NEXT: type = 0x0070 (char), addr = 0000:0000
-# CHECK: Mod 0001 | `* Linker *`:
+# CHECK: Global Symbols
+# CHECK-NEXT: ============================================================
+# CHECK-NEXT: Records
+# CHECK-NEXT: 20 | S_GDATA32 [size = 32] `__imp___wc_mb_cur`
+# CHECK-NEXT: type = 0x0070 (char), addr = 0000:0000
+
+# CHECK: Symbols
+# CHECK-NEXT: ============================================================
+# CHECK-NEXT: Mod 0000 | `{{.*}}pdb-import-gc.yaml.tmp.obj`:
+# CHECK-NEXT: Mod 0001 | `* Linker *`:
--- !COFF
header: