summaryrefslogtreecommitdiff
path: root/test/SemaObjC/blocks.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjC/blocks.m')
-rw-r--r--test/SemaObjC/blocks.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/SemaObjC/blocks.m b/test/SemaObjC/blocks.m
index 36292309732b..ddac7d1759ec 100644
--- a/test/SemaObjC/blocks.m
+++ b/test/SemaObjC/blocks.m
@@ -55,3 +55,15 @@ int foo9() {
}
}
+
+// rdar 7725203
+@class NSString;
+
+extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
+
+void foo10() {
+ void(^myBlock)(void) = ^{
+ };
+ NSLog(@"%@", myBlock);
+}
+