// RUN: %clang_analyze_cc1 -analyzer-checker=osx.cocoa.Dealloc -fblocks -verify %s
// RUN: %clang_analyze_cc1 -analyzer-checker=osx.cocoa.Dealloc -fblocks -verify -triple x86_64-apple-darwin10 -fobjc-arc %s
// No diagnostics expected under ARC.
// expected-no-diagnostics
typedef signed char BOOL;
typedef struct objc_selector *SEL;
//===------------------------------------------------------------------------===
// Do not warn about missing -dealloc method. Not enough context to know
// whether the ivar is retained or not.
//===------------------------------------------------------------------------===
// Do not warn about missing -dealloc method. These properties are not
// retained or synthesized.
//===------------------------------------------------------------------------===
// Warn about missing -dealloc method.
// expected-warning@+2{{'MissingDeallocWithCopyProperty' lacks a 'dealloc' instance method but must release '_ivar'}}
// expected-warning@+2{{'MissingDeallocWithRetainProperty' lacks a 'dealloc' instance method but must release '_ivar'}}
// expected-warning@+2{{'MissingDeallocWithMultipleProperties' lacks a 'dealloc' instance method but must release '_ivar1' and others}}
// expected-warning@+2{{'MissingDeallocWithIVarAndRetainProperty' lacks a 'dealloc' instance method but must release '_ivar1'}}
// expected-warning@+2{{'MissingDeallocWithReadOnlyRetainedProperty' lacks a 'dealloc' instance method but must release '_ivar'}}
//===------------------------------------------------------------------------===
// Don't warn about iVars that are selectors.
//===------------------------------------------------------------------------===
// Don't warn about iVars that are IBOutlets.
@class NSWindow;
//===------------------------------------------------------------------------===
// PR 3187: http://llvm.org/bugs/show_bug.cgi?id=3187
// - Disable the missing -dealloc check for classes that subclass SenTestCase
@class NSString;
//===------------------------------------------------------------------------===
// Don't warn for clases that aren't subclasses of NSObject
//===------------------------------------------------------------------------===
// Don't crash on calls to dealloc as a class method.