| 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 |
| 5 |
|
| 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 |
| 9 |
|
| 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 |
| 14 |
|
| 15 |
#include "Inputs/pch-through1.h" |
| 16 |
static int bar() { return 42; } |
| 17 |
#include "Inputs/pch-through2.h" |
| 18 |
int pch(); |