1 | // Create PCH with #pragma hdrstop |
2 | // RUN: %clang_cc1 -I %S -emit-pch -pch-through-hdrstop-create \ |
3 | // RUN: -fms-extensions -o %t.pch -x c++-header %s |
4 | |
5 | // Use PCH with no #pragma hdrstop |
6 | // RUN: not %clang_cc1 -I %S -emit-obj -include-pch %t.pch \ |
7 | // RUN: -pch-through-hdrstop-use -fms-extensions -o %t.obj -x c++ %s 2>&1 \ |
8 | // RUN: | FileCheck --check-prefix=CHECK-U %s |
9 | |
10 | #include "Inputs/pch-through1.h" |
11 | static int bar() { return 42; } |
12 | #include "Inputs/pch-through2.h" |
13 | int pch(); |
14 | //CHECK-U: hdrstop not seen while attempting to use precompiled header |
15 | |