| 1 | // RUN: touch %t.pch |
|---|---|
| 2 | // RUN: %clang -### -verify-pch %t.pch 2> %t.log.1 |
| 3 | // RUN: FileCheck %s < %t.log.1 |
| 4 | // CHECK: -verify-pch |
| 5 | |
| 6 | // Also ensure that the language setting is not affected by the .pch extension |
| 7 | // CHECK-NOT: "-x" "precompiled-header" |
| 8 | |
| 9 | // RUN: %clang -### -verify-pch -x objective-c %t.pch 2> %t.log.2 |
| 10 | // RUN: FileCheck -check-prefix=CHECK2 %s < %t.log.2 |
| 11 | // CHECK2: "-x" "objective-c" |
| 12 | // CHECK2-NOT: "-x" "precompiled-header" |
| 13 |