blob: 73b291e3c9e332150c896abf9c76f79c8275e1b4 [file] [log] [blame]
Patrick Beardacfbe9e2012-04-06 18:12:22 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=core,experimental.core -analyzer-store=region -analyzer-constraints=range -Wno-objc-root-class %s -verify
Ted Kremenek58700462008-10-17 17:24:14 +00002
3// The point of this test cases is to exercise properties in the static
4// analyzer
5
6@interface MyClass {
7@private
8 id _X;
9}
10- (id)initWithY:(id)Y;
Fariborz Jahanian9a207ee2008-11-25 17:56:43 +000011@property(copy, readwrite) id X;
Ted Kremenek58700462008-10-17 17:24:14 +000012@end
13
14@implementation MyClass
15@synthesize X = _X;
16- (id)initWithY:(id)Y {
17 self.X = Y;
18 return self;
19}
20@end