]> granicus.if.org Git - clang/commitdiff
[analyzer] Fix test in previous commit.
authorJordan Rose <jordan_rose@apple.com>
Wed, 14 Nov 2012 23:09:52 +0000 (23:09 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 14 Nov 2012 23:09:52 +0000 (23:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167995 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/blocks.m

index a64e8e4fc338d20bbca06773a61bb2a948588ac3..8aa65a371e580a297fc8916cb747b0be57439883 100644 (file)
@@ -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) {