Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / objc / execute / encode-1.m
blob3f232c9cdd295d5e090b11eae9c8ec07223f0e95
1 /* Contributed by Nicola Pero - Thu Mar  8 16:27:46 CET 2001 */
2 #include <objc/objc.h>
3 #include <objc/objc-api.h>
4 #include <objc/Object.h>
6 /* Test very simple @encode */
8 int main (void)
10   if (strcmp ("i", @encode (int)))
11     {
12       abort ();
13     }
15   if (strcmp ("@", @encode (id)))
16     {
17       abort ();
18     }
20   if (strcmp ("@", @encode (Object *)))
21     {
22       abort ();
23     }
25   if (strcmp (":", @encode (SEL)))
26     {
27       abort ();
28     }
30   return 0;