diff options
Diffstat (limited to 'test/PCH/changed-files.c')
-rw-r--r-- | test/PCH/changed-files.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/PCH/changed-files.c b/test/PCH/changed-files.c new file mode 100644 index 0000000..36453c4 --- /dev/null +++ b/test/PCH/changed-files.c @@ -0,0 +1,11 @@ +const char *s0 = m0; + +// 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>&1 | grep "size of file" + +// 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>&1 | grep "size of file" |