2 // The LLVM Compiler Infrastructure
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
11 // Created by Blaine Garst on 9/24/08.
13 // CONFIG rdar://6244520
19 #include <Block_private.h>
22 void check(void (^b
)(void)) {
24 struct Block_layout layout
;
25 struct Block_byref
*innerp
;
26 } *custom
= (struct _custom
*)(void *)(b
);
27 //printf("block is at %p, size is %lx, inner is %p\n", (void *)b, Block_size(b), innerp);
28 if (custom
->innerp
->isa
!= (void *)NULL
) {
29 printf("not a NULL __block isa\n");
35 int main(int argc
, char *argv
[]) {
39 check(^{ printf("%d\n", ++i
); });
40 printf("%s: success\n", argv
[0]);