1 | const char *s0 = m0; |
2 | int s1 = m1; |
3 | const char *s2 = m0; |
4 | |
5 | // FIXME: This test fails inexplicably on Windows in a manner that makes it |
6 | // look like standard error isn't getting flushed properly. |
7 | |
8 | // RUN: false |
9 | // XFAIL: * |
10 | |
11 | // RUN: echo '#define m0 ""' > %t.h |
12 | // RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h |
13 | // RUN: echo '' > %t.h |
14 | // RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr |
15 | // RUN: grep "modified" %t.stderr |
16 | |
17 | // RUN: echo '#define m0 000' > %t.h |
18 | // RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h |
19 | // RUN: echo '' > %t.h |
20 | // RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr |
21 | // RUN: grep "modified" %t.stderr |
22 | |
23 | // RUN: echo '#define m0 000' > %t.h |
24 | // RUN: echo "#define m1 'abcd'" >> %t.h |
25 | // RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h |
26 | // RUN: echo '' > %t.h |
27 | // RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr |
28 | // RUN: grep "modified" %t.stderr |
29 | |