1 // expected-no-diagnostics
2 // Create PCH with #pragma hdrstop processing with no #pragma hdrstop
3 // RUN: %clang_cc1 -verify -I %S -emit-pch -pch-through-hdrstop-create \
4 // RUN: -fms-extensions -o %t.pch -x c++-header %s
6 // Create the PCH object
7 // RUN: %clang_cc1 -verify -I %S -emit-obj -include-pch %t.pch \
8 // RUN: -pch-through-hdrstop-create -fms-extensions -o %t.obj -x c++ %s
10 // The use must still have a #pragma hdrstop
11 // RUN: %clang_cc1 -verify -I %S -emit-obj -include-pch %t.pch \
12 // RUN: -pch-through-hdrstop-use -fms-extensions -o %t.obj \
13 // RUN: -x c++ %S/Inputs/pch-no-hdrstop-use.cpp
15 #include "Inputs/pch-through1.h"
16 static int bar() { return 42; }
17 #include "Inputs/pch-through2.h"