2017-03-04 02:02:02 +08:00
|
|
|
// RUN: %clang_analyze_cc1 -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
|