llvm/lld/test/COFF/pdb-type-server-corrupted.test

RUN: rm -rf %t && mkdir -p %t && cd %t
RUN: yaml2obj %S/Inputs/pdb-type-server-corrupted-a.yaml -o a.obj
RUN: yaml2obj %S/Inputs/pdb-type-server-corrupted-b.yaml -o b.obj
RUN: cp %S/Inputs/bad-block-size.pdb ./bad-block-size.pdb
RUN: lld-link a.obj b.obj -entry:main -debug:noghash -out:t.exe -pdb:t.pdb -nodefaultlib 2>&1 | FileCheck %s

Re-run with /DEBUG:GHASH
RUN: lld-link a.obj b.obj -entry:main -debug:ghash -out:t.exe -pdb:t.pdb -nodefaultlib 2>&1 | FileCheck %s

# CHECK: warning: Cannot use debug info for {{.*}}a.obj
# CHECK-NEXT: failed to load reference '{{.*}}bad-block-size.pdb': The PDB file is corrupt. MSF superblock is missing

# CHECK: warning: Cannot use debug info for {{.*}}b.obj
# CHECK-NEXT: failed to load reference '{{.*}}bad-block-size.pdb': The PDB file is corrupt. MSF superblock is missing