aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/preprocess.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/preprocess.c')
-rw-r--r--test/PCH/preprocess.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/PCH/preprocess.c b/test/PCH/preprocess.c
new file mode 100644
index 000000000000..128cc0acb973
--- /dev/null
+++ b/test/PCH/preprocess.c
@@ -0,0 +1,5 @@
+// RUN: clang-cc -emit-pch -o %t %S/preprocess.h &&
+// RUN: clang-cc -include-pch %t -E -o - %s | grep -c "a_typedef" | count 1
+#include "preprocess.h"
+
+int a_value;