2 Test your installation by running:
4 clang -o sample -fblocks sample.c -lBlocksRuntime && ./sample
6 The above line should result in:
10 If you have everything correctly installed.
14 #error must be compiled with -fblocks option enabled
25 printf("Hello world %d\n", i
);
28 void (^block2
)() = Block_copy(block
);
31 Block_release(block2
);