2017-03-03 07:30:53 +08:00
|
|
|
// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -Wno-objc-root-class %s -verify
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2008-10-18 01:24:14 +08:00
|
|
|
|
|
|
|
// The point of this test cases is to exercise properties in the static
|
|
|
|
// analyzer
|
|
|
|
|
|
|
|
@interface MyClass {
|
|
|
|
@private
|
|
|
|
id _X;
|
|
|
|
}
|
|
|
|
- (id)initWithY:(id)Y;
|
2008-11-26 01:56:43 +08:00
|
|
|
@property(copy, readwrite) id X;
|
2008-10-18 01:24:14 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyClass
|
|
|
|
@synthesize X = _X;
|
|
|
|
- (id)initWithY:(id)Y {
|
|
|
|
self.X = Y;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
@end
|