Ted Kremenek | 722398f | 2012-08-24 20:39:55 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core -analyzer-store=region -analyzer-constraints=range -Wno-objc-root-class %s -verify |
Ted Kremenek | 5870046 | 2008-10-17 17:24:14 +0000 | [diff] [blame] | 2 | |
| 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 Jahanian | 9a207ee | 2008-11-25 17:56:43 +0000 | [diff] [blame] | 11 | @property(copy, readwrite) id X; |
Ted Kremenek | 5870046 | 2008-10-17 17:24:14 +0000 | [diff] [blame] | 12 | @end |
| 13 | |
| 14 | @implementation MyClass |
| 15 | @synthesize X = _X; |
| 16 | - (id)initWithY:(id)Y { |
| 17 | self.X = Y; |
| 18 | return self; |
| 19 | } |
| 20 | @end |