OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [objc.dg/] [method-12.m] - Diff between revs 309 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 309 Rev 384
/* Contributed by Igor Seleznev <selez@mail.ru>.  */
/* Contributed by Igor Seleznev <selez@mail.ru>.  */
/* This used to be broken.  */
/* This used to be broken.  */
 
 
#include <objc/objc.h>
#include <objc/objc.h>
 
 
@interface A
@interface A
+ (A *)currentContext;
+ (A *)currentContext;
@end
@end
 
 
@interface B
@interface B
+ (B *)currentContext;
+ (B *)currentContext;
@end
@end
 
 
int main()
int main()
{
{
    [A currentContext];  /* { dg-bogus "multiple declarations" }  */
    [A currentContext];  /* { dg-bogus "multiple declarations" }  */
    return 0;
    return 0;
}
}
 
 
@implementation A
@implementation A
+ (A *)currentContext { return nil; }
+ (A *)currentContext { return nil; }
@end
@end
@implementation B
@implementation B
+ (B *)currentContext { return nil; }
+ (B *)currentContext { return nil; }
@end
@end
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.