summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/exprs.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-16 00:55:48 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-16 00:55:48 +0000
commit38676d50dc05b75f410e79a57e2d5ae357b93c68 (patch)
tree80acb49ddccecef9b05a41f95c166d8834366061 /clang/test/PCH/exprs.h
parente82c3cc84879b0704d49f7f28d16f8869de85196 (diff)
downloadbcm5719-llvm-38676d50dc05b75f410e79a57e2d5ae357b93c68.tar.gz
bcm5719-llvm-38676d50dc05b75f410e79a57e2d5ae357b93c68.zip
PCH support for InitListExpr, DesignatedInitExpr, and ImplicitValueInitExpr.
llvm-svn: 69251
Diffstat (limited to 'clang/test/PCH/exprs.h')
-rw-r--r--clang/test/PCH/exprs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/PCH/exprs.h b/clang/test/PCH/exprs.h
index a928b9b2e8f..43fd89595e9 100644
--- a/clang/test/PCH/exprs.h
+++ b/clang/test/PCH/exprs.h
@@ -61,6 +61,15 @@ typedef __attribute__(( ext_vector_type(2) )) double double2;
extern double2 vec2, vec2b;
typedef typeof(vec2.x) ext_vector_element;
+// InitListExpr
+double double_array[3] = { 1.0, 2.0 };
+
+// DesignatedInitExpr
+struct {
+ int x;
+ float y;
+} designated_inits[3] = { [0].y = 17, [2].x = 12.3, 3.5 };
+
// TypesCompatibleExpr
typedef typeof(__builtin_types_compatible_p(float, double)) types_compatible;
OpenPOWER on IntegriCloud