blob: 8347cc0bdaf5746321cdaab89bf6b5c7bcf99ec6 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic %s -verify &&
Ted Kremenekc037eac2009-07-10 00:41:58 +00002// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic-old-cast -analyzer-constraints=basic %s -verify &&
Daniel Dunbard7d5f022009-03-24 02:24:46 +00003// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range %s -verify &&
Ted Kremenekc037eac2009-07-10 00:41:58 +00004// RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic-old-cast -analyzer-constraints=range %s -verify &&
Daniel Dunbard7d5f022009-03-24 02:24:46 +00005// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=basic %s -verify &&
6// RUN: clang-cc -analyze -checker-cfref -analyzer-store=region -analyzer-constraints=range %s -verify
Ted Kremenekb6b81d12008-10-17 17:24:14 +00007
8// The point of this test cases is to exercise properties in the static
9// analyzer
10
11@interface MyClass {
12@private
13 id _X;
14}
15- (id)initWithY:(id)Y;
Fariborz Jahanian6669db92008-11-25 17:56:43 +000016@property(copy, readwrite) id X;
Ted Kremenekb6b81d12008-10-17 17:24:14 +000017@end
18
19@implementation MyClass
20@synthesize X = _X;
21- (id)initWithY:(id)Y {
22 self.X = Y;
23 return self;
24}
25@end