• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: lld-link %S/Inputs/precompb/useprecomp.obj %S/Inputs/precompa/precomp.obj %S/Inputs/precompb/precomp.obj \
2RUN:     %S/Inputs/precompa/useprecomp.obj /nodefaultlib /entry:main /debug /pdb:%t.pdb /out:%t.exe  \
3RUN:     /summary | FileCheck %s -check-prefix SUMMARY
4
5RUN: llvm-pdbutil dump -types %t.pdb | FileCheck %s
6
7
8CHECK: Types (TPI Stream)
9CHECK-NOT: LF_PRECOMP
10CHECK-NOT: LF_ENDPRECOMP
11
12
13SUMMARY:                                     Summary
14SUMMARY-NEXT: --------------------------------------------------------------------------------
15SUMMARY-NEXT:               4 Input OBJ files (expanded from all cmd-line inputs)
16SUMMARY-NEXT:               0 PDB type server dependencies
17SUMMARY-NEXT:               2 Precomp OBJ dependencies
18
19// precompa/precomp.cpp
20#include "precomp.h"
21
22// precompa/useprecomp.cpp
23#include "precomp.h"
24int main(int argc, char **argv) { return 0; }
25
26// precompa/precomp.h
27int precompa_symbol = 42;
28
29// precompb/precomp.cpp
30#include "precomp.h"
31
32// precompb/useprecomp.cpp
33#include "precomp.h"
34
35// precompb/precomp.h
36int precompb_symbol = 142;