[cfe-commits] r138710 - /cfe/trunk/test/Analysis/objc-arc.m

Ted Kremenek kremenek at apple.com
Sat Aug 27 14:15:48 PDT 2011


Author: kremenek
Date: Sat Aug 27 16:15:48 2011
New Revision: 138710

URL: http://llvm.org/viewvc/llvm-project?rev=138710&view=rev
Log:
[analyzer] Add test case for handling of __bridge_transfer that previously resulted in a 'stack address' warning (that was fixed in r138616).  Fixes <rdar://problem/10018376>.

Modified:
    cfe/trunk/test/Analysis/objc-arc.m

Modified: cfe/trunk/test/Analysis/objc-arc.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/objc-arc.m?rev=138710&r1=138709&r2=138710&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/objc-arc.m (original)
+++ cfe/trunk/test/Analysis/objc-arc.m Sat Aug 27 16:15:48 2011
@@ -147,3 +147,9 @@
   (void) x;
 }
 
+// Previously this resulted in a "return of stack address" warning.
+id test_return() {
+  id x = (__bridge_transfer id) CFCreateString();
+  return x; // no-warning
+}
+





More information about the cfe-commits mailing list