summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/include-pth.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/include-pth.c')
-rw-r--r--test/Preprocessor/include-pth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Preprocessor/include-pth.c b/test/Preprocessor/include-pth.c
new file mode 100644
index 0000000..2afc66a
--- /dev/null
+++ b/test/Preprocessor/include-pth.c
@@ -0,0 +1,3 @@
+// RUN: clang-cc -emit-pth %s -o %t &&
+// RUN: clang-cc -include-pth %t %s -E | grep 'file_to_include' | count 2
+#include "file_to_include.h"
OpenPOWER on IntegriCloud