blob: d1b603b2f110813f1f07d6ae03b835d58d1f3bc9 [file] [log] [blame]
Douglas Gregor50f6af72010-03-16 05:20:39 +00001const char *s0 = m0;
Douglas Gregor453091c2010-03-16 22:30:13 +00002int s1 = m1;
Douglas Gregorc8151082010-03-16 22:53:51 +00003const char *s2 = m0;
Douglas Gregor50f6af72010-03-16 05:20:39 +00004
Douglas Gregora49f1af2010-03-18 14:59:12 +00005// FIXME: This test fails inexplicably on Windows in a manner that makes it
6// look like standard error isn't getting flushed properly.
Douglas Gregor2399bed2010-03-17 18:28:02 +00007
Douglas Gregor90d4efa2010-03-25 16:40:13 +00008// RUN: false
9// XFAIL: *
Douglas Gregor50f6af72010-03-16 05:20:39 +000010
Douglas Gregor90d4efa2010-03-25 16:40:13 +000011// 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 Gregor453091c2010-03-16 22:30:13 +000016
Douglas Gregor90d4efa2010-03-25 16:40:13 +000017// 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