summaryrefslogtreecommitdiffstats
path: root/test/PCH/multiple-include-pch.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/multiple-include-pch.c')
-rw-r--r--test/PCH/multiple-include-pch.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/PCH/multiple-include-pch.c b/test/PCH/multiple-include-pch.c
new file mode 100644
index 0000000..1ef17b9
--- /dev/null
+++ b/test/PCH/multiple-include-pch.c
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -emit-pch -o %t1.pch %s
+// RUN: %clang_cc1 -emit-pch -o %t2.pch %s
+// RUN: %clang_cc1 %s -include-pch %t1.pch -include-pch %t2.pch -verify
+
+#ifndef HEADER
+#define HEADER
+
+extern int x;
+
+#else
+
+#warning parsed this
+// expected-warning@-1 {{parsed this}}
+int foo() {
+ return x;
+}
+
+#endif
OpenPOWER on IntegriCloud