From: Jordan Rose Date: Wed, 14 Nov 2012 23:09:52 +0000 (+0000) Subject: [analyzer] Fix test in previous commit. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fc9a647f9fbcb2374ebc569964c687576437920;p=clang [analyzer] Fix test in previous commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167995 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 -@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) {