Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=basic %s -verify && |
Ted Kremenek | c037eac | 2009-07-10 00:41:58 +0000 | [diff] [blame^] | 2 | // RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic-old-cast -analyzer-constraints=basic %s -verify && |
Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 3 | // RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic -analyzer-constraints=range %s -verify && |
Ted Kremenek | c037eac | 2009-07-10 00:41:58 +0000 | [diff] [blame^] | 4 | // RUN: clang-cc -analyze -checker-cfref -analyzer-store=basic-old-cast -analyzer-constraints=range %s -verify && |
Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 5 | // 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 Kremenek | b6b81d1 | 2008-10-17 17:24:14 +0000 | [diff] [blame] | 7 | |
| 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 Jahanian | 6669db9 | 2008-11-25 17:56:43 +0000 | [diff] [blame] | 16 | @property(copy, readwrite) id X; |
Ted Kremenek | b6b81d1 | 2008-10-17 17:24:14 +0000 | [diff] [blame] | 17 | @end |
| 18 | |
| 19 | @implementation MyClass |
| 20 | @synthesize X = _X; |
| 21 | - (id)initWithY:(id)Y { |
| 22 | self.X = Y; |
| 23 | return self; |
| 24 | } |
| 25 | @end |