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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc.dg/] [super-class-2.m] - Blame information for rev 320

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

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

powered by: WebSVN 2.1.0

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