📄 super-class-1.mm
字号:
/* Test calling super from within a category method. *//* { dg-do compile } */#include <objc/objc.h>@interface NSObject@end@interface NSMenuItem: NSObject@end@interface NSObject (Test)+ (int) test_func;@end@implementation NSObject (Test)+ (int) test_func{}@end@interface NSMenuItem (Test)+ (int) test_func;@end@implementation NSMenuItem (Test)+ (int) test_func{ return [super test_func]; /* { dg-bogus "invalid use of undefined type" } */} /* { dg-bogus "forward declaration of" "" { target *-*-* } 28 } */@end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -