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