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/] [execute/] [function-message-1.m] - Blame information for rev 315

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

Line No. Rev Author Line
1 307 jeremybenn
#import "../../objc-obj-c++-shared/Object1.h"
2
 
3
@interface Foo : Object
4
+ bar;
5
@end
6
 
7
int foocalled = 0;
8
int barcalled = 0;
9
 
10
 
11
id foo()
12
{
13
    if (foocalled)
14
      abort ();
15
    foocalled = 1;
16
    return [Foo class];
17
}
18
 
19
@implementation Foo
20
+ bar
21
{
22
    if (barcalled)
23
      abort ();
24
    barcalled = 1;
25
    return self;
26
}
27
@end
28
 
29
int main(int argc,char **argv)
30
{
31
    [foo() bar];
32
    return 0;
33
}

powered by: WebSVN 2.1.0

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