summaryrefslogtreecommitdiffstats
path: root/test/PCH/multiple_decls.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/multiple_decls.c')
-rw-r--r--test/PCH/multiple_decls.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/PCH/multiple_decls.c b/test/PCH/multiple_decls.c
new file mode 100644
index 0000000..4b2fc62
--- /dev/null
+++ b/test/PCH/multiple_decls.c
@@ -0,0 +1,17 @@
+// Test this without pch.
+// RUN: clang-cc -include %S/multiple_decls.h -fsyntax-only -ast-print -o - %s &&
+
+// Test with pch.
+// RUN: clang-cc -emit-pch -o %t %S/multiple_decls.h &&
+// RUN: clang-cc -include-pch %t -fsyntax-only -ast-print -o - %s
+
+void f0(char c) {
+ wide(c);
+}
+
+struct wide w;
+struct narrow n;
+
+void f1(int i) {
+ narrow(i);
+}
OpenPOWER on IntegriCloud