2009-01-23 07:43:57 +08:00
|
|
|
// RUN: clang -analyze -checker-simple %s -verify &&
|
|
|
|
// RUN: clang -analyze -checker-cfref -analyzer-store-basic %s -verify &&
|
|
|
|
// RUN: clang -analyze -checker-cfref -analyzer-store-region %s -verify
|
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
|