OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [gcc/] [testsuite/] [obj-c++.dg/] [method-18.mm] - Diff between revs 308 and 519

Only display areas with differences | Details | Blame | View Log

Rev 308 Rev 519
/* Contributed by Igor Seleznev .  */
/* Contributed by Igor Seleznev .  */
/* This used to be broken.  */
/* This used to be broken.  */
#include 
#include 
@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.