Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / objc / execute / function-message-1.m
blob2c8c002d9e829f2e7d7f6f7bb237897011848645
1 #include <objc/Object.h>
3 @interface Foo : Object
4 + bar;
5 @end
7 int foocalled = 0;
8 int barcalled = 0;
11 id foo()
13     if (foocalled)
14       abort ();
15     foocalled = 1;
16     return [Foo class];
19 @implementation Foo
20 + bar
22     if (barcalled)
23       abort ();
24     barcalled = 1;
25     return self;
27 @end
29 int main(int argc,char **argv)
31     [foo() bar];
32     return 0;