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

📄 super-class-2.m

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 M
字号:
/* Test calling super from within a category class method.  *//* Author: Ziemowit Laski <zlaski@apple.com>  *//* { dg-do compile } *//* { dg-options "-fnext-runtime" } */typedef struct objc_object { struct objc_class *isa; } *id;@interface NSObject+ (int) test_func0;@end@interface NSMenuItem: NSObject+ (int) test_func0;@end@implementation NSObject+ (int) test_func0{}@end@implementation NSMenuItem+ (int) test_func0{  return [super test_func0];}@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 "dereferencing pointer to incomplete type" } */}@end

⌨️ 快捷键说明

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