OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [objc/] [execute/] [function-message-1.m] - Diff between revs 307 and 384

Only display areas with differences | Details | Blame | View Log

Rev 307 Rev 384
#import "../../objc-obj-c++-shared/Object1.h"
#import "../../objc-obj-c++-shared/Object1.h"
 
 
@interface Foo : Object
@interface Foo : Object
+ bar;
+ bar;
@end
@end
 
 
int foocalled = 0;
int foocalled = 0;
int barcalled = 0;
int barcalled = 0;
 
 
 
 
id foo()
id foo()
{
{
    if (foocalled)
    if (foocalled)
      abort ();
      abort ();
    foocalled = 1;
    foocalled = 1;
    return [Foo class];
    return [Foo class];
}
}
 
 
@implementation Foo
@implementation Foo
+ bar
+ bar
{
{
    if (barcalled)
    if (barcalled)
      abort ();
      abort ();
    barcalled = 1;
    barcalled = 1;
    return self;
    return self;
}
}
@end
@end
 
 
int main(int argc,char **argv)
int main(int argc,char **argv)
{
{
    [foo() bar];
    [foo() bar];
    return 0;
    return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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