summaryrefslogtreecommitdiff
path: root/test/PCH/pch-through3a.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/pch-through3a.cpp')
-rw-r--r--test/PCH/pch-through3a.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/PCH/pch-through3a.cpp b/test/PCH/pch-through3a.cpp
new file mode 100644
index 0000000000000..3a134e9310bc4
--- /dev/null
+++ b/test/PCH/pch-through3a.cpp
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -verify -I %S -emit-pch \
+// RUN: -pch-through-header=Inputs/pch-through1.h -o %t.s3at1 %s
+
+// RUN: %clang_cc1 -I %S -include-pch %t.s3at1 \
+// RUN: -pch-through-header=Inputs/pch-through1.h \
+// RUN: %S/Inputs/pch-through-use3a.cpp
+//expected-no-diagnostics
+
+#define AFOO 0
+#include "Inputs/pch-through1.h"