Nico Weber | 2ca4be9 | 2016-03-01 23:16:44 +0000 | [diff] [blame] | 1 | // Note: %s and %S must be preceded by --, otherwise it may be interpreted as a |
| 2 | // command-line option, e.g. on Mac where %s is commonly under /Users. |
| 3 | |
| 4 | // /Yc but pch generation fails => main file not compiled |
| 5 | // This is a separate file since executing this failure path requires |
| 6 | // code generation, which makes this test require an x86 backend. |
| 7 | // REQUIRES: x86-registered-target |
| 8 | |
Diana Picus | 7ef9a07 | 2016-08-02 13:53:00 +0000 | [diff] [blame] | 9 | // 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 \ |
Nico Weber | 2ca4be9 | 2016-03-01 23:16:44 +0000 | [diff] [blame] | 10 | // RUN: | FileCheck %s |
| 11 | |
| 12 | // CHECK: nope1 |
| 13 | // CHECK-NOT: nope2 |
| 14 | |
| 15 | #error nope2 |