Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / objc / execute / nested-3.m
blob5462fd5ef7ad9b62c236199ab24063cbd5db7ad2
1 /* Contributed by Nicola Pero - Fri Mar  9 19:39:15 CET 2001 */
2 #include <objc/objc.h>
4 /* Test defining a nested function inside a method */
6 @interface Test
8   Class isa;
10 + (int) test;
11 @end
13 @implementation Test
15 + (int) test
17   int test (void)
18     {
19       return 1;
20     }
21   
22   return test ();
25 #ifdef __NEXT_RUNTIME__                                   
26 + initialize { return self; }
27 #endif
28 @end
30 int main (void)
32   if ([Test test] != 1)
33     {
34       abort ();
35     }
37   return 0;