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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc.dg/] [lto/] [trivial-1_0.m] - Blame information for rev 704

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 704 jeremybenn
/* { dg-lto-do run } */
2
/* { dg-skip-if "" { "*-*-darwin*" && lp64 } { "*" } { "" } } */
3
extern int printf (char *,...) ;
4
 
5
typedef struct objc_class *Class;
6
 
7
struct objc_class {
8
    Class isa;
9
    /* other stuff... */
10
}  ;
11
 
12
@interface myRootObject {
13
@public
14
     Class isa;
15
}
16
+initialize;
17
+(Class)class;
18
 
19
@end
20
 
21
@implementation myRootObject
22
+initialize {
23
     return self;
24
}
25
 
26
+(Class)class {
27
     return (Class)self;
28
}
29
 
30
@end
31
 
32
int main(void)
33
{
34
  [myRootObject class];
35
  printf("trivial OK\n");
36
  return 0;
37
}

powered by: WebSVN 2.1.0

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