Debian Codegraph @

clang/test/CodeGenObjC/block-over-align.m

raw
1 // RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -emit-llvm -o /dev/null %s
2
3 typedef struct
4 {
5 int i;
6 } GAXBackboardState __attribute__ ((aligned(32))); // minimum alignment is 32-byte boundary
7
8 @interface GAXSpringboard @end
9
10 @implementation GAXSpringboard
11 {
12 GAXBackboardState _reflectedBackboardState;
13 }
14
15 - (void) MyMethod
16 {
17 GAXBackboardState newBackboardState;
18 ^{
19 _reflectedBackboardState = newBackboardState;
20 return newBackboardState.i;
21 }();
22 }
23 @end
24