URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 308 |
Rev 338 |
/* Test calling super from within a category method. */
|
/* Test calling super from within a category method. */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
#include
|
#include
|
|
|
@interface NSObject
|
@interface NSObject
|
@end
|
@end
|
@interface NSMenuItem: NSObject
|
@interface NSMenuItem: NSObject
|
@end
|
@end
|
|
|
@interface NSObject (Test)
|
@interface NSObject (Test)
|
+ (int) test_func;
|
+ (int) test_func;
|
@end
|
@end
|
|
|
@implementation NSObject (Test)
|
@implementation NSObject (Test)
|
+ (int) test_func
|
+ (int) test_func
|
{}
|
{}
|
@end
|
@end
|
|
|
@interface NSMenuItem (Test)
|
@interface NSMenuItem (Test)
|
+ (int) test_func;
|
+ (int) test_func;
|
@end
|
@end
|
|
|
@implementation NSMenuItem (Test)
|
@implementation NSMenuItem (Test)
|
+ (int) test_func
|
+ (int) test_func
|
{
|
{
|
return [super test_func]; /* { dg-bogus "invalid use of undefined type" } */
|
return [super test_func]; /* { dg-bogus "invalid use of undefined type" } */
|
} /* { dg-bogus "forward declaration of" "" { target *-*-* } 28 } */
|
} /* { dg-bogus "forward declaration of" "" { target *-*-* } 28 } */
|
@end
|
@end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.