29 lines · c
1const char *s0 = m0;2int s1 = m1;3const 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: false9// XFAIL: *10 11// RUN: echo '#define m0 ""' > %t.h12// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h13// RUN: echo '' > %t.h14// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr15// RUN: grep "modified" %t.stderr16 17// RUN: echo '#define m0 000' > %t.h18// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h19// RUN: echo '' > %t.h20// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr21// RUN: grep "modified" %t.stderr22 23// RUN: echo '#define m0 000' > %t.h24// RUN: echo "#define m1 'abcd'" >> %t.h25// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h26// RUN: echo '' > %t.h27// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr28// RUN: grep "modified" %t.stderr29