Ted Kremenek | f071e18 | 2008-07-24 17:45:56 +0000 | [diff] [blame^] | 1 | // RUN: clang -warn-objc-missing-dealloc -verify %s |
| 2 | |
| 3 | typedef struct objc_selector *SEL; |
| 4 | typedef signed char BOOL; |
| 5 | typedef unsigned int NSUInteger; |
| 6 | typedef struct _NSZone NSZone; |
| 7 | @protocol NSObject |
| 8 | - (BOOL)isEqual:(id)object; |
| 9 | @end |
| 10 | @interface NSObject <NSObject> {} |
| 11 | - (id)init; |
| 12 | @end |
| 13 | |
| 14 | @interface TestSELs : NSObject { |
| 15 | SEL a; |
| 16 | SEL b; |
| 17 | } |
| 18 | |
| 19 | @end |
| 20 | |
| 21 | @implementation TestSELs // no-warning |
| 22 | - (id)init { |
| 23 | if( (self = [super init]) ) { |
| 24 | a = @selector(a); |
| 25 | b = @selector(b); |
| 26 | } |
| 27 | |
| 28 | return self; |
| 29 | } |
| 30 | @end |