PCH support for CompoundLiteralExpr. This is the last C expression
that does not require PCH support for statements. Only AddrLabelExpr,
StmtExpr, and BlockExpr remain (for C).
llvm-svn: 69255
diff --git a/clang/test/PCH/exprs.c b/clang/test/PCH/exprs.c
index e08024b..ced6d17 100644
--- a/clang/test/PCH/exprs.c
+++ b/clang/test/PCH/exprs.c
@@ -61,6 +61,10 @@
// CStyleCastExpr
void_ptr vp1 = &integer;
+// CompoundLiteral
+struct S s;
+compound_literal *sptr = &s;
+
// ExtVectorElementExpr
ext_vector_element *double_ptr5 = &floating;
diff --git a/clang/test/PCH/exprs.h b/clang/test/PCH/exprs.h
index 43fd895..7012422 100644
--- a/clang/test/PCH/exprs.h
+++ b/clang/test/PCH/exprs.h
@@ -56,6 +56,9 @@
// CStyleCastExpr
typedef typeof((void *)0) void_ptr;
+// CompoundLiteral
+typedef typeof((struct S){.x = 3.5}) compound_literal;
+
// ExtVectorElementExpr
typedef __attribute__(( ext_vector_type(2) )) double double2;
extern double2 vec2, vec2b;