forked from OSchip/llvm-project
26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
REQUIRES: diasdk
|
|
|
|
RUN: yaml2obj %p/Inputs/generic.yaml > %t.obj
|
|
RUN: lld-link /DEBUG %t.obj /nodefaultlib /entry:main /NATVIS:%p/Inputs/natvis-1.natvis \
|
|
RUN: /NATVIS:%p/Inputs/natvis-2.natvis /NATVIS:%p/Inputs/natvis-3.natvis /OUT:%t.exe \
|
|
RUN: /PDB:%t.pdb
|
|
RUN: llvm-pdbutil pretty -injected-sources -injected-source-content %t.pdb | FileCheck \
|
|
RUN: --check-prefix=CHECK-FIRST %s
|
|
RUN: llvm-pdbutil pretty -injected-sources -injected-source-content %t.pdb | FileCheck \
|
|
RUN: --check-prefix=CHECK-SECOND %s
|
|
RUN: llvm-pdbutil pretty -injected-sources -injected-source-content %t.pdb | FileCheck \
|
|
RUN: --check-prefix=CHECK-THIRD %s
|
|
|
|
RUN: lld-link /DEBUG %t.obj /nodefaultlib /entry:main /NATVIS:%p/Inputs/test2.natvis \
|
|
RUN: /OUT:%t.exe /PDB:%t.pdb 2>&1 | FileCheck --check-prefix=CHECK-MISSING %s
|
|
|
|
CHECK-FIRST: {{.*}}natvis-1.natvis (16 bytes): obj=<null>, vname={{.*}}natvis-1.natvis, crc=355285096, compression=None
|
|
CHECK-FIRST-NEXT: 1st Natvis Test
|
|
|
|
CHECK-SECOND: {{.*}}natvis-2.natvis (19 bytes): obj=<null>, vname={{.*}}natvis-2.natvis, crc=4252640062, compression=None
|
|
CHECK-SECOND-NEXT: Second Natvis Test
|
|
|
|
CHECK-THIRD: {{.*}}natvis-3.natvis (18 bytes): obj=<null>, vname={{.*}}natvis-3.natvis, crc=2069719849, compression=None
|
|
CHECK-THIRD-NEXT: Third Natvis Test
|
|
|
|
CHECK-MISSING: Cannot open input file: {{.*}}test2.natvis |