blob: 1712feff5b7862966e1d17c02a8dd6d0253e478a [file] [log] [blame]
Ted Kremenekcdc3a892012-08-24 20:39:55 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -Wno-objc-root-class %s -verify
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Ted Kremenekb6b81d12008-10-17 17:24:14 +00003
4// The point of this test cases is to exercise properties in the static
5// analyzer
6
7@interface MyClass {
8@private
9 id _X;
10}
11- (id)initWithY:(id)Y;
Fariborz Jahanian6669db92008-11-25 17:56:43 +000012@property(copy, readwrite) id X;
Ted Kremenekb6b81d12008-10-17 17:24:14 +000013@end
14
15@implementation MyClass
16@synthesize X = _X;
17- (id)initWithY:(id)Y {
18 self.X = Y;
19 return self;
20}
21@end