Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / objc / execute / _cmd.m
blob6c579d771b86db55807eed95a9b1110a22c79e47
1 /* Contributed by Nicola Pero - Fri Mar  9 19:39:15 CET 2001 */
3 #include <stdlib.h>
4 #include "../../objc-obj-c++-shared/next-mapping.h"
5 #include <objc/objc-api.h>
7 /* Test the hidden argument _cmd to method calls */
9 @interface TestClass 
11   Class isa;
13 + (const char*) method;
14 @end
16 @implementation TestClass
17 + (const char*) method
19   return sel_get_name (_cmd);
21 #ifdef __NEXT_RUNTIME__
22 + initialize { return self; }
23 #endif
24 @end
27 int main (void)
29   if (strcmp ([TestClass method], "method"))
30     {
31       abort ();
32     }
34   return 0;