diff options
Diffstat (limited to 'test/CodeGenObjC/block-var-layout.m')
-rw-r--r-- | test/CodeGenObjC/block-var-layout.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenObjC/block-var-layout.m b/test/CodeGenObjC/block-var-layout.m index 0ad44daa0bdb..171df7b27489 100644 --- a/test/CodeGenObjC/block-var-layout.m +++ b/test/CodeGenObjC/block-var-layout.m @@ -164,3 +164,11 @@ void test_empty_block() { }; wrapperBlock(); } + +// rdar://16111839 +typedef union { char ch[8]; } SS; +typedef struct { SS s[4]; } CS; +void test_union_in_layout() { + CS cs; + ^{ cs; }; +} |