xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/pth.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // Test transparent PTH support.
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc // RUN: %clang -no-canonical-prefixes -ccc-pch-is-pth -x c-header %s -o %t.h.pth -### 2> %t.log
4*f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix CHECK1 -input-file %t.log %s
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc // CHECK1: "{{.*[/\\]}}clang{{.*}}" "-cc1" {{.*}} "-o" "{{.*}}.h.pth" "-x" "c-header" "{{.*}}pth.c"
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc // RUN: touch %t.h.pth
9*f4a2713aSLionel Sambuc // RUN: %clang -no-canonical-prefixes -ccc-pch-is-pth -E -include %t.h %s -### 2> %t.log
10*f4a2713aSLionel Sambuc // RUN: FileCheck -check-prefix CHECK2 -input-file %t.log %s
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc // CHECK2: "{{.*[/\\]}}clang{{.*}}" "-cc1" {{.*}}"-include-pth" "{{.*}}.h.pth" {{.*}}"-x" "c" "{{.*}}pth.c"
13