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