summaryrefslogtreecommitdiff
path: root/clang/test/PCH/designated-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/PCH/designated-init.c')
-rw-r--r--clang/test/PCH/designated-init.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/PCH/designated-init.c b/clang/test/PCH/designated-init.c
new file mode 100644
index 0000000..beb4dff
--- /dev/null
+++ b/clang/test/PCH/designated-init.c
@@ -0,0 +1,7 @@
+// Test this without pch.
+// RUN: %clang_cc1 %s -include %s.h -emit-llvm -o %t.withoutpch.ll
+
+// Test with pch.
+// RUN: %clang_cc1 %s.h -emit-pch -o %t.pch
+// RUN: %clang_cc1 %s -include-pch %t.pch -emit-llvm -o %t.withpch.ll
+// RUN: diff %t.withoutpch.ll %t.withpch.ll