f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
21 lines
467 B
Objective-C
21 lines
467 B
Objective-C
// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -Wno-objc-root-class %s -verify
|
|
// expected-no-diagnostics
|
|
|
|
// The point of this test cases is to exercise properties in the static
|
|
// analyzer
|
|
|
|
@interface MyClass {
|
|
@private
|
|
id _X;
|
|
}
|
|
- (id)initWithY:(id)Y;
|
|
@property(copy, readwrite) id X;
|
|
@end
|
|
|
|
@implementation MyClass
|
|
@synthesize X = _X;
|
|
- (id)initWithY:(id)Y {
|
|
self.X = Y;
|
|
return self;
|
|
}
|
|
@end
|