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