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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [objc.dg/] [super-class-2.m] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test calling super from within a category class method.  */
2
/* Author: Ziemowit Laski <zlaski@apple.com>  */
3
/* { dg-do compile } */
4
/* { dg-options "-fnext-runtime" } */
5
 
6
typedef struct objc_object { struct objc_class *isa; } *id;
7
 
8
@interface NSObject
9
+ (int) test_func0;
10
@end
11
@interface NSMenuItem: NSObject
12
+ (int) test_func0;
13
@end
14
 
15
@implementation NSObject
16
+ (int) test_func0
17
{}
18
@end
19
 
20
@implementation NSMenuItem
21
+ (int) test_func0
22
{
23
  return [super test_func0];
24
}
25
@end
26
 
27
@interface NSObject (Test)
28
+ (int) test_func;
29
@end
30
 
31
@implementation NSObject (Test)
32
+ (int) test_func
33
{}
34
@end
35
 
36
@interface NSMenuItem (Test)
37
+ (int) test_func;
38
@end
39
 
40
@implementation NSMenuItem (Test)
41
+ (int) test_func
42
{
43
   return [super test_func];  /* { dg-bogus "dereferencing pointer to incomplete type" } */
44
}
45
@end

powered by: WebSVN 2.1.0

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