Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / objc / execute / _cmd.m
blob7e176e9916c7f4dd9f0aa07023d29136052469e2
1 /* Contributed by Nicola Pero - Fri Mar  9 19:39:15 CET 2001 */
3 #include <stdlib.h>
4 #include "../../objc-obj-c++-shared/runtime.h"
6 /* Test the hidden argument _cmd to method calls */
8 @interface TestClass 
10   Class isa;
12 + (const char*) method;
13 @end
15 @implementation TestClass
16 + (const char*) method
18   return sel_getName (_cmd);
20 + initialize { return self; }
21 @end
24 int main (void)
26   if (strcmp ([TestClass method], "method"))
27     {
28       abort ();
29     }
31   return 0;