aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/changed-files.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/changed-files.c')
-rw-r--r--test/PCH/changed-files.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/PCH/changed-files.c b/test/PCH/changed-files.c
index 36453c48e7..4ef80ffb04 100644
--- a/test/PCH/changed-files.c
+++ b/test/PCH/changed-files.c
@@ -1,4 +1,5 @@
const char *s0 = m0;
+int s1 = m1;
// RUN: echo '#define m0 ""' > %t.h
// RUN: %clang_cc1 -emit-pch -o %t.h.pch %t.h
@@ -9,3 +10,9 @@ const char *s0 = m0;
// 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: 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>&1 | grep "size of file"