2010-03-16 13:20:39 +08:00
|
|
|
const char *s0 = m0;
|
2010-03-17 06:30:13 +08:00
|
|
|
int s1 = m1;
|
2010-03-17 06:53:51 +08:00
|
|
|
const char *s2 = m0;
|
2010-03-16 13:20:39 +08:00
|
|
|
|
2010-03-18 22:59:12 +08:00
|
|
|
// FIXME: This test fails inexplicably on Windows in a manner that makes it
|
|
|
|
// look like standard error isn't getting flushed properly.
|
2010-03-18 02:28:02 +08:00
|
|
|
|
2010-03-26 00:40:13 +08:00
|
|
|
// RUN: false
|
|
|
|
// XFAIL: *
|
2010-03-16 13:20:39 +08:00
|
|
|
|
2010-03-26 00:40:13 +08:00
|
|
|
// RUN: echo '#define m0 ""' > %t.h
|
|
|
|
// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
|
|
|
|
// RUN: echo '' > %t.h
|
|
|
|
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
|
|
|
|
// RUN: grep "modified" %t.stderr
|
2010-03-17 06:30:13 +08:00
|
|
|
|
2010-03-26 00:40:13 +08:00
|
|
|
// RUN: echo '#define m0 000' > %t.h
|
|
|
|
// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
|
|
|
|
// RUN: echo '' > %t.h
|
|
|
|
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
|
|
|
|
// RUN: grep "modified" %t.stderr
|
|
|
|
|
|
|
|
// RUN: echo '#define m0 000' > %t.h
|
|
|
|
// RUN: echo "#define m1 'abcd'" >> %t.h
|
|
|
|
// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
|
|
|
|
// RUN: echo '' > %t.h
|
|
|
|
// RUN: not %clang_cc1 -include-pch %t.h.pch %s 2> %t.stderr
|
|
|
|
// RUN: grep "modified" %t.stderr
|