[RISCV][FMV] Support target_clones (#85786)
[llvm-project.git] / clang / test / Driver / pch-instantiate-templates.c
blobb0f7f3473993804029409d2bb0484295282972b6
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
5 // CLANG_CL_YC: "-fpch-instantiate-templates"
6 // CLANG_CL_YC_DISABLE-NOT: "-fpch-instantiate-templates"
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
12 // GCC_DEFAULT-NOT: "-fpch-instantiate-templates"
13 // GCC_DEFAULT_ENABLE: "-fpch-instantiate-templates"