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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [cascading-1.m] - Blame information for rev 307

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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