[cfe-commits] r167995 - /cfe/trunk/test/Analysis/blocks.m

Jordan Rose jordan_rose at apple.com
Wed Nov 14 15:09:52 PST 2012


Author: jrose
Date: Wed Nov 14 17:09:52 2012
New Revision: 167995

URL: http://llvm.org/viewvc/llvm-project?rev=167995&view=rev
Log:
[analyzer] Fix test in previous commit.

Modified:
    cfe/trunk/test/Analysis/blocks.m

Modified: cfe/trunk/test/Analysis/blocks.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/blocks.m?rev=167995&r1=167994&r2=167995&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/blocks.m (original)
+++ cfe/trunk/test/Analysis/blocks.m Wed Nov 14 17:09:52 2012
@@ -98,7 +98,7 @@
 
 
 // FALSE POSITIVE <rdar://problem/12415065>
- at interface rdar12415065
+ at interface rdar12415065 : NSObject
 @end
 
 @implementation rdar12415065
@@ -112,6 +112,8 @@
   if (!queue)
     return;
 
+  // FALSE POSITIVE
+  // expected-warning at +1 {{Variable 'x' is uninitialized when captured by block}}
   dispatch_async(queue, ^{
     double x = 0.0;
     if (24.0f < x) {





More information about the cfe-commits mailing list