1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,osx -verify %s
3 typedef signed char BOOL;
5 @protocol NSObject - (BOOL)isEqual:(id)object; @end
6 @interface NSObject <NSObject> {}
14 - (oneway void)release;
17 @interface Cell : NSObject {
26 if ((self = [super init])) {
29 // Test that this is being analyzed.
31 m = m + 1; //expected-warning {{The left operand of '+' is a garbage value}}
35 // Make sure that we do not propagate the 'nil' check from inlined 'init' to 'test'.
37 Cell *newCell = [[Cell alloc] init];
38 newCell->x = 5; // no-warning