Douglas Gregor | 50f6af7 | 2010-03-16 05:20:39 +0000 | [diff] [blame] | 1 | const char *s0 = m0; |
Douglas Gregor | 453091c | 2010-03-16 22:30:13 +0000 | [diff] [blame] | 2 | int s1 = m1; |
Douglas Gregor | c815108 | 2010-03-16 22:53:51 +0000 | [diff] [blame] | 3 | const char *s2 = m0; |
Douglas Gregor | 50f6af7 | 2010-03-16 05:20:39 +0000 | [diff] [blame] | 4 | |
Douglas Gregor | a49f1af | 2010-03-18 14:59:12 +0000 | [diff] [blame] | 5 | // FIXME: This test fails inexplicably on Windows in a manner that makes it |
| 6 | // look like standard error isn't getting flushed properly. |
Douglas Gregor | 2399bed | 2010-03-17 18:28:02 +0000 | [diff] [blame] | 7 | |
Douglas Gregor | 90d4efa | 2010-03-25 16:40:13 +0000 | [diff] [blame] | 8 | // RUN: false |
| 9 | // XFAIL: * |
Douglas Gregor | 50f6af7 | 2010-03-16 05:20:39 +0000 | [diff] [blame] | 10 | |
Douglas Gregor | 90d4efa | 2010-03-25 16:40:13 +0000 | [diff] [blame] | 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 |
Douglas Gregor | 453091c | 2010-03-16 22:30:13 +0000 | [diff] [blame] | 16 | |
Douglas Gregor | 90d4efa | 2010-03-25 16:40:13 +0000 | [diff] [blame] | 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 |