URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* 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
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.