[analyzer] Add a test for dead stores, which uses OpaqueValExpr.

llvm-svn: 156875
This commit is contained in:
Anna Zaks 2012-05-15 23:12:53 +00:00
parent cebe722ef6
commit 7a0d86be26
1 changed files with 20 additions and 0 deletions

View File

@ -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