2 // The LLVM Compiler Infrastructure
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
7 // CONFIG rdar://6405500
11 #import <dispatch/dispatch.h>
12 #import <objc/objc-auto.h>
14 int main (int argc
, const char * argv
[]) {
15 __block
void (^blockFu
)(size_t t
);
16 blockFu
= ^(size_t t
){
18 printf("%s: success\n", argv
[0]);
21 dispatch_async(dispatch_get_main_queue(), ^{ blockFu(20); });
24 dispatch_apply(10, dispatch_get_concurrent_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT
), blockFu
);
27 printf("shouldn't get here\n");