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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [super-class-1.mm] - Blame information for rev 703

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 703 jeremybenn
/* Test calling super from within a category method.  */
2
 
3
/* { dg-do compile } */
4
 
5
#include 
6
 
7
@interface NSObject
8
@end
9
@interface NSMenuItem: NSObject
10
@end
11
 
12
@interface NSObject (Test)
13
+ (int) test_func;
14
@end
15
 
16
@implementation NSObject (Test)
17
+ (int) test_func
18
{}
19
@end
20
 
21
@interface NSMenuItem (Test)
22
+ (int) test_func;
23
@end
24
 
25
@implementation NSMenuItem (Test)
26
+ (int) test_func
27
{
28
   return [super test_func];  /* { dg-bogus "invalid use of undefined type" } */
29
}   /* { dg-bogus "forward declaration of" "" { target *-*-* } 28 } */
30
@end

powered by: WebSVN 2.1.0

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