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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [super-class-2.m] - Rev 455

Go to most recent revision | Compare with Previous | Blame | View Log

/* Test calling super from within a category class method.  */
/* Author: Ziemowit Laski <zlaski@apple.com>  */
/* { dg-do compile } */
/* { dg-options "-fnext-runtime" } */
 
typedef struct objc_object { struct objc_class *isa; } *id;
 
@interface NSObject
+ (int) test_func0;
@end
@interface NSMenuItem: NSObject
+ (int) test_func0;
@end
 
@implementation NSObject
+ (int) test_func0
{}
@end
 
@implementation NSMenuItem
+ (int) test_func0
{
  return [super test_func0];
}
@end
 
@interface NSObject (Test)
+ (int) test_func;
@end
 
@implementation NSObject (Test)
+ (int) test_func
{}
@end
 
@interface NSMenuItem (Test)
+ (int) test_func;
@end
 
@implementation NSMenuItem (Test)
+ (int) test_func
{
   return [super test_func];  /* { dg-bogus "dereferencing pointer to incomplete type" } */
}
@end
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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