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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [objc/] [execute/] [function-message-1.m] - Blame information for rev 702

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 702 jeremybenn
#include "../../objc-obj-c++-shared/TestsuiteObject.m"
2
 
3
@interface Foo : TestsuiteObject
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.