aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Analysis/blocks.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/Analysis/blocks.m b/test/Analysis/blocks.m
index a64e8e4fc3..8aa65a371e 100644
--- a/test/Analysis/blocks.m
+++ b/test/Analysis/blocks.m
@@ -98,7 +98,7 @@ void testMessaging() {
// FALSE POSITIVE <rdar://problem/12415065>
-@interface rdar12415065
+@interface rdar12415065 : NSObject
@end
@implementation rdar12415065
@@ -112,6 +112,8 @@ void testMessaging() {
if (!queue)
return;
+ // FALSE POSITIVE
+ // expected-warning@+1 {{Variable 'x' is uninitialized when captured by block}}
dispatch_async(queue, ^{
double x = 0.0;
if (24.0f < x) {