summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50200-more_blocks_2.m
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50200-more_blocks_2.m')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50200-more_blocks_2.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50200-more_blocks_2.m b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50200-more_blocks_2.m
new file mode 100644
index 00000000..8835454f
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50200-more_blocks_2.m
@@ -0,0 +1,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);
+});