brintos

brintos / llvm-project-archived public Read only

0
0
Text · 557 B · 7e66c96 Raw
15 lines · cpp
1// Create PCH with #pragma hdrstop2// RUN: %clang_cc1 -I %S -emit-pch -pch-through-hdrstop-create \3// RUN:   -fms-extensions -o %t.pch -x c++-header %s4 5// Use PCH with no #pragma hdrstop6// 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 %s9 10#include "Inputs/pch-through1.h"11static int bar() { return 42; }12#include "Inputs/pch-through2.h"13int pch();14//CHECK-U: hdrstop not seen while attempting to use precompiled header15