}
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- self.ivar = nil; // expected-warning {{use of 'self' after it has been deallocated}}
- // expected-note@-1 {{use of 'self' after it has been deallocated}}
+ self.ivar = nil; // expected-warning {{Use of 'self' after it has been deallocated}}
+ // expected-note@-1 {{Use of 'self' after it has been deallocated}}
}
@end
}
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- self.delegate = nil; // expected-warning {{use of 'self' after it has been deallocated}}
- // expected-note@-1 {{use of 'self' after it has been deallocated}}
+ self.delegate = nil; // expected-warning {{Use of 'self' after it has been deallocated}}
+ // expected-note@-1 {{Use of 'self' after it has been deallocated}}
}
@end
}
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- [self _invalidate]; // expected-warning {{use of 'self' after it has been deallocated}}
- // expected-note@-1 {{use of 'self' after it has been deallocated}}
+ [self _invalidate]; // expected-warning {{Use of 'self' after it has been deallocated}}
+ // expected-note@-1 {{Use of 'self' after it has been deallocated}}
}
@end
@implementation SuperDeallocThenCallNonObjectiveCMethodClass
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- _invalidate(self); // expected-warning {{use of 'self' after it has been deallocated}}
- // expected-note@-1 {{use of 'self' after it has been deallocated}}
+ _invalidate(self); // expected-warning {{Use of 'self' after it has been deallocated}}
+ // expected-note@-1 {{Use of 'self' after it has been deallocated}}
}
@end
- (void)dealloc {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- [SuperDeallocThenCallObjectiveClassMethodClass invalidate:self]; // expected-warning {{use of 'self' after it has been deallocated}}
- // expected-note@-1 {{use of 'self' after it has been deallocated}}
+ [SuperDeallocThenCallObjectiveClassMethodClass invalidate:self]; // expected-warning {{Use of 'self' after it has been deallocated}}
+ // expected-note@-1 {{Use of 'self' after it has been deallocated}}
}
@end
return;
}
[super dealloc]; // expected-note {{[super dealloc] called here}}
- [self _invalidate]; // expected-warning {{use of 'self' after it has been deallocated}}
- // expected-note@-1 {{use of 'self' after it has been deallocated}}
+ [self _invalidate]; // expected-warning {{Use of 'self' after it has been deallocated}}
+ // expected-note@-1 {{Use of 'self' after it has been deallocated}}
}
@end
- (void)dealloc; {
[super dealloc]; // expected-note {{[super dealloc] called here}}
- [self anotherMethod]; // expected-warning {{use of 'self' after it has been deallocated}}
- // expected-note@-1 {{use of 'self' after it has been deallocated}}
+ [self anotherMethod]; // expected-warning {{Use of 'self' after it has been deallocated}}
+ // expected-note@-1 {{Use of 'self' after it has been deallocated}}
[super dealloc];
}
@end