Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / objc / execute / function-message-1.m
blobf676dd9a06a663db8934fb00ff619c7a844832ee
1 #include "../../objc-obj-c++-shared/TestsuiteObject.m"
3 @interface Foo : TestsuiteObject
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;