12ca4be97SNico Weber // Note: %s and %S must be preceded by --, otherwise it may be interpreted as a 22ca4be97SNico Weber // command-line option, e.g. on Mac where %s is commonly under /Users. 32ca4be97SNico Weber 42ca4be97SNico Weber // /Yc but pch generation fails => main file not compiled 52ca4be97SNico Weber // This is a separate file since executing this failure path requires 62ca4be97SNico Weber // code generation, which makes this test require an x86 backend. 72ca4be97SNico Weber // REQUIRES: x86-registered-target 82ca4be97SNico Weber 9*7ef9a07fSDiana Picus // RUN: not %clang_cl -Werror --target=x86_64 /Yc%S/Inputs/pchfile.h /FI%S/Inputs/pchfile.h /Fp%t.pch /c -DERR_HEADER -- %s 2>&1 \ 102ca4be97SNico Weber // RUN: | FileCheck %s 112ca4be97SNico Weber 122ca4be97SNico Weber // CHECK: nope1 132ca4be97SNico Weber // CHECK-NOT: nope2 142ca4be97SNico Weber 152ca4be97SNico Weber #error nope2 16