1*67e74705SXin Li // Note: %s and %S must be preceded by --, otherwise it may be interpreted as a 2*67e74705SXin Li // command-line option, e.g. on Mac where %s is commonly under /Users. 3*67e74705SXin Li 4*67e74705SXin Li // /Yc but pch generation fails => main file not compiled 5*67e74705SXin Li // This is a separate file since executing this failure path requires 6*67e74705SXin Li // code generation, which makes this test require an x86 backend. 7*67e74705SXin Li // REQUIRES: x86-registered-target 8*67e74705SXin Li 9*67e74705SXin Li // RUN: not %clang_cl -Werror /Yc%S/Inputs/pchfile.h /FI%S/Inputs/pchfile.h /Fp%t.pch /c -DERR_HEADER -- %s 2>&1 \ 10*67e74705SXin Li // RUN: | FileCheck %s 11*67e74705SXin Li 12*67e74705SXin Li // CHECK: nope1 13*67e74705SXin Li // CHECK-NOT: nope2 14*67e74705SXin Li 15*67e74705SXin Li #error nope2 16