[cfe-commits] r156875 - /cfe/trunk/test/Analysis/dead-stores.m

Anna Zaks ganna at apple.com
Tue May 15 16:12:53 PDT 2012


Author: zaks
Date: Tue May 15 18:12:53 2012
New Revision: 156875

URL: http://llvm.org/viewvc/llvm-project?rev=156875&view=rev
Log:
[analyzer] Add a test for dead stores, which uses OpaqueValExpr.

Modified:
    cfe/trunk/test/Analysis/dead-stores.m

Modified: cfe/trunk/test/Analysis/dead-stores.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/dead-stores.m?rev=156875&r1=156874&r2=156875&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/dead-stores.m (original)
+++ cfe/trunk/test/Analysis/dead-stores.m Tue May 15 18:12:53 2012
@@ -88,3 +88,23 @@
   RDar10591355 *p = rdar10591355_aux();
   ^{ (void) p.x; }();
 }
+
+ at interface Radar11059352_1 {
+ at private
+    int *_pathString;
+}
+ at property int *pathString;
+ at end
+ at interface Radar11059352 {
+ at private
+Radar11059352_1 *_Path;
+}
+ at end
+ at implementation Radar11059352
+
+- (int*)usePath {
+    Radar11059352_1 *xxxxx = _Path; // no warning
+    int *wp = xxxxx.pathString;
+    return wp;
+}
+ at end





More information about the cfe-commits mailing list