Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / objc / execute / static-2.m
blob6cdbf5b775bd8e92e5f3b43d9af14fafee77b57c
1 /* Contributed by Nicola Pero - Fri Mar  9 19:39:15 CET 2001 */
2 #include <objc/objc.h>
4 /* Test defining a static function *inside* a class implementation */
6 @interface Test
8   Class isa;
10 + (int) test;
11 @end
13 @implementation Test
15 static int test (void)
17   return 1;
20 + (int) test
22   return test ();
25 + initialize { return self; }
26 @end
28 int main (void)
30   if ([Test test] != 1)
31     {
32       abort ();
33     }
35   return 0;