gcc3.2.1源代码

源代码在线查看: method-1.m

软件大小: 26469 K
上传用户: ccuading
关键词: gcc 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

				/* Tests of duplication.  */				/* { dg-do compile } */								@interface class1				- (int) meth1;				- (void) meth1;  /* { dg-error "duplicate declaration of instance method" } */				@end								@interface class2				+ (void) meth1;				+ (int) meth1;  /* { dg-error "duplicate declaration of class method" } */				@end								@interface class3				- (int) meth1;				@end								@implementation class3				- (int) meth1 { return 0; }				- (int) meth1 { return 0; }  /* { dg-error "duplicate definition of instance method" } */				/* { dg-error "redefinition of" "" { target *-*-* } 20 } */				/* { dg-error "previously defined here" "" { target *-*-* } 19 } */				@end								@interface class4				+ (void) meth1;				@end								@implementation class4				+ (void) meth1 {}				+ (void) meth1 {}  /* { dg-error "duplicate definition of class method" } */				/* { dg-error "redefinition of" "" { target *-*-* } 31 } */				/* { dg-error "previously defined here" "" { target *-*-* } 30 } */				@end							

相关资源