20 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir -p %t3 4// Create PCH without -ignore-pch.5// RUN: %clang -x c++-header %S/Inputs/pchfile.h -### 2>&1 | FileCheck %s -check-prefix=CHECK-EMIT-PCH6// RUN: %clang -x c++-header %S/Inputs/pchfile.h -o %t/pchfile.h.pch7// RUN: %clang %s -include-pch %t/pchfile.h.pch -### 2>&1 | FileCheck %s -check-prefix=CHECK-INCLUDE-PCH8// RUN: %clang %s -emit-ast -include-pch %t/pchfile.h.pch -### 2>&1 | FileCheck %s -check-prefixes=CHECK-EMIT-PCH,CHECK-INCLUDE-PCH9 10 11// Create PCH with -ignore-pch.12// RUN: %clang -x c++-header -ignore-pch %S/Inputs/pchfile.h -### 2>&1 | FileCheck %s -check-prefix=CHECK-IGNORE-PCH13// RUN: %clang %s -ignore-pch -include-pch %t/pchfile.h.pch -### 2>&1 | FileCheck %s -check-prefix=CHECK-IGNORE-PCH14// RUN: %clang %s -ignore-pch -emit-ast -include-pch %t/pchfile.h.pch -### 2>&1 | FileCheck %s -check-prefix=CHECK-IGNORE-PCH15 16// CHECK-EMIT-PCH: -emit-pch17// CHECK-INCLUDE-PCH: -include-pch18// CHECK-IGNORE-PCH-NOT: -emit-pch19// CHECK-IGNORE-PCH-NOT: -include-pch20