俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)的全部源代码。

源代码在线查看: super-class-2.m

软件大小: 36058 K
上传用户: horse2000
关键词: PocketPC Mamaich Pocket gcc
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* Test calling super from within a category class method.  */				/* Author: Ziemowit Laski   */				/* { 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							

相关资源