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] - Rev 704

Compare with Previous | Blame | View Log

/* { dg-lto-do run } */
/* { dg-skip-if "" { "*-*-darwin*" && lp64 } { "*" } { "" } } */
extern int printf (char *,...) ;
 
typedef struct objc_class *Class;
 
struct objc_class {
    Class isa;
    /* other stuff... */
}  ;
 
@interface myRootObject {
@public
     Class isa;
}
+initialize;
+(Class)class;
 
@end
 
@implementation myRootObject
+initialize {
     return self;
}
 
+(Class)class {
     return (Class)self;
}
 
@end
 
int main(void)
{
  [myRootObject class];
  printf("trivial OK\n");
  return 0;
}
 

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.