Ted Kremenek | 08e4b66 | 2008-07-24 17:02:18 +0000 | [diff] [blame] | 1 | // RUN: clang -warn-objc-missing-dealloc '-DIBOutlet=__attribute__((iboutlet))' %s --verify |
2 | |||||
3 | #ifndef IBOutlet | ||||
4 | #define IBOutlet | ||||
5 | #endif | ||||
6 | |||||
7 | @class NSWindow; | ||||
8 | |||||
9 | @interface NSObject {} | ||||
10 | - (void)dealloc; | ||||
11 | @end | ||||
12 | |||||
13 | @interface A : NSObject { | ||||
14 | IBOutlet NSWindow *window; | ||||
15 | } | ||||
16 | @end | ||||
17 | |||||
18 | @implementation A // no-warning | ||||
19 | @end | ||||
20 |