⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 super-dealloc-1.m

📁 linux下编程用 编译软件
💻 M
字号:
/* Check for warnings about missing [super dealloc] calls.  *//* Author: Ziemowit Laski <zlaski@apple.com>  *//* { dg-do compile } */@interface Foo {  void *isa;}- (void) dealloc;- (void) some_other;@end@interface Bar: Foo {  void *casa;}- (void) dealloc;@end@interface Baz: Bar {  void *usa;}- (void) dealloc;@end@implementation Foo- (void) dealloc {  isa = 0;   /* Should not warn here.  */}- (void) some_other {  isa = (void *)-1;}@end@implementation Bar- (void) dealloc {  casa = 0;  [super some_other];}  /* { dg-warning "method possibly missing a .super dealloc. call" } */@end@implementation Baz- (void) dealloc {  usa = 0;  [super dealloc];  /* Should not warn here.  */}@end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -