summaryrefslogtreecommitdiff
path: root/test/Sema/ast-print.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-06-09 19:08:19 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-06-09 19:08:19 +0000
commit798321d8eb5630cd4a8f490a4f25e32ef195fb07 (patch)
treea59f5569ef36d00388c0428426abef26aa9105b6 /test/Sema/ast-print.c
parent5e20cdd81c44a443562a09007668ffdf76c455af (diff)
Diffstat (limited to 'test/Sema/ast-print.c')
-rw-r--r--test/Sema/ast-print.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/ast-print.c b/test/Sema/ast-print.c
index 4b2b43190d42..b4d76844fef7 100644
--- a/test/Sema/ast-print.c
+++ b/test/Sema/ast-print.c
@@ -45,3 +45,11 @@ typedef struct {
// CHECK: struct __attribute__((visibility("default"))) S;
struct __attribute__((visibility("default"))) S;
+
+struct pair_t {
+ int a;
+ int b;
+};
+
+// CHECK: struct pair_t p = {a: 3, .b = 4};
+struct pair_t p = {a: 3, .b = 4};