blob: 1a112ec2b1289aee4ced989048a0873c9a9b0b39 [file] [log] [blame]
Dominic Chen184c6242017-03-03 18:02:02 +00001// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.core -analyzer-store=region -Wno-objc-root-class %s -verify
Andy Gibbsc6e68da2012-10-19 12:44:48 +00002// expected-no-diagnostics
Ted Kremenek58700462008-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 Jahanian9a207ee2008-11-25 17:56:43 +000012@property(copy, readwrite) id X;
Ted Kremenek58700462008-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