1 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp 2 // RUN: FileCheck -check-prefix LP --input-file=%t-rw.cpp %s 3 // radar 7607781 4 5 typedef struct { 6 int a; 7 int b; 8 } mystruct; 9 10 void g(int (^block)(mystruct s)) { 11 mystruct x; 12 int v = block(x); 13 } 14 15 void f(const void **arg) { 16 __block const void **q = arg; 17 g(^(mystruct s){ 18 *q++ = (void*)s.a; 19 return 314; 20 }); 21 } 22 23 // CHECK-LP: (struct __Block_byref_q_0 *)&q 24