3 RUN: yaml2obj %p/Inputs/generic.yaml -o %t.obj
4 RUN: lld-link /DEBUG %t.obj /nodefaultlib /entry:main /NATVIS:%p/Inputs/natvis-1.natvis \
5 RUN: /NATVIS:%p/Inputs/natvis-2.natvis /NATVIS:%p/Inputs/natvis-3.natvis /OUT:%t.exe \
7 RUN: llvm-pdbutil pretty -injected-sources -injected-source-content %t.pdb | FileCheck \
8 RUN: --check-prefix=CHECK-FIRST %s
9 RUN: llvm-pdbutil pretty -injected-sources -injected-source-content %t.pdb | FileCheck \
10 RUN: --check-prefix=CHECK-SECOND %s
11 RUN: llvm-pdbutil pretty -injected-sources -injected-source-content %t.pdb | FileCheck \
12 RUN: --check-prefix=CHECK-THIRD %s
14 RUN: lld-link /DEBUG %t.obj /nodefaultlib /entry:main /NATVIS:%p/Inputs/test2.natvis \
15 RUN: /OUT:%t.exe /PDB:%t.pdb 2>&1 | FileCheck --check-prefix=CHECK-MISSING %s
17 CHECK-FIRST: {{.*}}natvis-1.natvis ({{16|17}} bytes): obj=<null>, vname={{.*}}natvis-1.natvis, crc={{355285096|3974675339}}, compression=None
18 CHECK-FIRST-NEXT: 1st Natvis Test
20 CHECK-SECOND: {{.*}}natvis-2.natvis ({{19|20}} bytes): obj=<null>, vname={{.*}}natvis-2.natvis, crc={{4252640062|1846024273}}, compression=None
21 CHECK-SECOND-NEXT: Second Natvis Test
23 CHECK-THIRD: {{.*}}natvis-3.natvis ({{18|19}} bytes): obj=<null>, vname={{.*}}natvis-3.natvis, crc={{2069719849|3982342878}}, compression=None
24 CHECK-THIRD-NEXT: Third Natvis Test
26 CHECK-MISSING: Cannot open input file: {{.*}}test2.natvis