summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/oc/more_blocks_2.m
blob: 55636ae5ba47183272d2633c54059ad717ea5b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Test a case where blocks wrapped by parentheses were causing the parser to crash
int (^myBlock)(int) = ( ^(int num) {
    return num * multiplier;
});

dispatch_async(thread, (^{
    dispatch_async(thread, ^{
        dispatch_async(thread, ^{
            NSLog(@"Hooray for dispatch_async!");
        });
    });
}));

// Example of a unit test using Kiwi
beforeAll(^{
    NSString *serviceURL = [NSURL URLWithString:@"http://TEST_URL"];
    NSLog(serviceURL);
});