super-class-1.mm
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· MM 代码 · 共 31 行
MM
31 行
/* APPLE LOCAL file mainline *//* 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 *-*-* } 27 } */@end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?