| 1 |
// CL driver test cases |
| 2 |
// RUN: %clang_cl -### /Yc /Fpfoo.pch /Fofoo.obj -- %s 2>&1 | FileCheck --check-prefix=CLANG_CL_YC %s |
| 3 |
// RUN: %clang_cl -### /Yc /Fpfoo.pch /Fofoo.obj -fno-pch-instantiate-templates -- %s 2>&1 | FileCheck --check-prefix=CLANG_CL_YC_DISABLE %s |
| 4 |
|
| 5 |
// CLANG_CL_YC: "-fpch-instantiate-templates" |
| 6 |
// CLANG_CL_YC_DISABLE-NOT: "-fpch-instantiate-templates" |
| 7 |
|
| 8 |
// GCC driver test cases |
| 9 |
// RUN: %clang -### -x c-header %s -o %t/foo.pch 2>&1 | FileCheck -check-prefix=GCC_DEFAULT %s |
| 10 |
// RUN: %clang -### -x c-header %s -o %t/foo.pch -fpch-instantiate-templates 2>&1 | FileCheck -check-prefix=GCC_DEFAULT_ENABLE %s |
| 11 |
|
| 12 |
// GCC_DEFAULT-NOT: "-fpch-instantiate-templates" |
| 13 |
// GCC_DEFAULT_ENABLE: "-fpch-instantiate-templates" |