diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/PCH/exprs.c | 4 | ||||
| -rw-r--r-- | clang/test/PCH/exprs.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/PCH/exprs.c b/clang/test/PCH/exprs.c index e08024b9bb8..ced6d178b4e 100644 --- a/clang/test/PCH/exprs.c +++ b/clang/test/PCH/exprs.c @@ -61,6 +61,10 @@ conditional_operator *double_ptr4 = &floating; // 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 43fd89595e9..7012422aad3 100644 --- a/clang/test/PCH/exprs.h +++ b/clang/test/PCH/exprs.h @@ -56,6 +56,9 @@ typedef typeof(i? : d0) conditional_operator; // 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; |

