diff options
author | Anna Zaks <ganna@apple.com> | 2012-05-15 23:12:53 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-05-15 23:12:53 +0000 |
commit | f1db0c9d8db882972832b0a16bbf2e5943605ed0 (patch) | |
tree | 87b5961bfb1b5add41e8a7e6f50d3a81b97c59ed | |
parent | c5d33e959b45987bb97a7fcf639cdf5ce55987ed (diff) |
[analyzer] Add a test for dead stores, which uses OpaqueValExpr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156875 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Analysis/dead-stores.m | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/Analysis/dead-stores.m b/test/Analysis/dead-stores.m index 083427478d..fe565547e1 100644 --- a/test/Analysis/dead-stores.m +++ b/test/Analysis/dead-stores.m @@ -88,3 +88,23 @@ void rdar10591355() { RDar10591355 *p = rdar10591355_aux(); ^{ (void) p.x; }(); } + +@interface Radar11059352_1 { +@private + int *_pathString; +} +@property int *pathString; +@end +@interface Radar11059352 { +@private +Radar11059352_1 *_Path; +} +@end +@implementation Radar11059352 + +- (int*)usePath { + Radar11059352_1 *xxxxx = _Path; // no warning + int *wp = xxxxx.pathString; + return wp; +} +@end |