forked from OSchip/llvm-project
[analyzer] Add a test for dead stores, which uses OpaqueValExpr.
llvm-svn: 156875
This commit is contained in:
parent
cebe722ef6
commit
7a0d86be26
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue