4 RUN: obj2yaml %S/Inputs/precomp-a.obj > %t1/precomp-a.yaml
\r
5 RUN: obj2yaml %S/Inputs/precomp.obj > %t1/precomp.yaml
\r
6 RUN: yaml2obj %t1/precomp-a.yaml > %t1/a.obj
\r
7 RUN: yaml2obj %t1/precomp.yaml > %t1/precomp.obj
\r
8 RUN: llvm-readobj --codeview %t1/a.obj | FileCheck %s -check-prefix PRECOMP
\r
9 RUN: llvm-readobj --codeview %t1/precomp.obj | FileCheck %s -check-prefix ENDPRECOMP
\r
10 RUN: llvm-pdbutil dump -types %t1/a.obj | FileCheck %s -check-prefix PDB-PRECOMP
\r
11 RUN: llvm-pdbutil dump -types %t1/precomp.obj | FileCheck %s -check-prefix PDB-ENDPRECOMP
\r
13 ENDPRECOMP: CodeViewTypes [
\r
14 ENDPRECOMP-NEXT: Section: .debug$P (3)
\r
15 ENDPRECOMP: EndPrecomp (0x1407) {
\r
16 ENDPRECOMP-NEXT: TypeLeafKind: LF_ENDPRECOMP (0x14)
\r
17 ENDPRECOMP-NEXT: Signature: 0x1116980E
\r
20 PRECOMP: CodeViewTypes [
\r
21 PRECOMP-NEXT: Section: .debug$T (3)
\r
22 PRECOMP-NEXT: Magic: 0x4
\r
23 PRECOMP-NEXT: Precomp (0x1000) {
\r
24 PRECOMP-NEXT: TypeLeafKind: LF_PRECOMP (0x1509)
\r
25 PRECOMP-NEXT: StartIndex: 0x1000
\r
26 PRECOMP-NEXT: Count: 0x407
\r
27 PRECOMP-NEXT: Signature: 0x1116980E
\r
29 PDB-PRECOMP: Types (.debug$T)
\r
30 PDB-PRECOMP-NEXT: ============================================================
\r
31 PDB-PRECOMP-NEXT: Showing 0 records
\r
32 PDB-PRECOMP-NEXT: 0x1000 | LF_PRECOMP [size = 60] start index = 0x1000, types count = 0x407, signature = 0x1116980E, precomp path = f:\svn\lld\test\coff\precomp\precomp.obj
\r
34 PDB-ENDPRECOMP: Precompiled Types (.debug$P)
\r
35 PDB-ENDPRECOMP-NEXT: ============================================================
\r
36 PDB-ENDPRECOMP-NEXT: Showing 0 records
\r
37 PDB-ENDPRECOMP: 0x1407 | LF_ENDPRECOMP [size = 8] signature = 0x1116980E
\r
41 # int Function(char A);
\r
44 # // cl.exe precomp.cpp /Z7 /Ycprecomp.h /c
\r
45 # #include "precomp.h"
\r
48 # #include "precomp.h"
\r
54 # // cl.exe a.cpp /Z7 /Yuprecomp.h /c
\r
56 # // obj2yaml precomp.obj >precomp-precomp.yaml
\r
57 # // obj2yaml a.obj >precomp-a.yaml
\r