Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git] / gcc / testsuite / objc / execute / encode-1.m
blob4c4f2babfdb19b40ca824cdae4d1bee3f727398a
1 /* Contributed by Nicola Pero - Thu Mar  8 16:27:46 CET 2001 */
2 #include <stdlib.h>
3 #import "../../objc-obj-c++-shared/TestsuiteObject.h"
4 #include <objc/objc.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 (TestsuiteObject *)))
21     {
22       abort ();
23     }
25   if (strcmp (":", @encode (SEL)))
26     {
27       abort ();
28     }
30   return 0;