19 lines · cpp
1// expected-no-diagnostics2// Create PCH with #pragma hdrstop processing with no #pragma hdrstop3// RUN: %clang_cc1 -verify -I %S -emit-pch -pch-through-hdrstop-create \4// RUN: -fms-extensions -o %t.pch -x c++-header %s5 6// Create the PCH object7// 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++ %s9 10// The use must still have a #pragma hdrstop11// 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.cpp14 15#include "Inputs/pch-through1.h"16static int bar() { return 42; }17#include "Inputs/pch-through2.h"18int pch();19