blob: 4c4f2babfdb19b40ca824cdae4d1bee3f727398a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* Contributed by Nicola Pero - Thu Mar 8 16:27:46 CET 2001 */
#include <stdlib.h>
#import "../../objc-obj-c++-shared/TestsuiteObject.h"
#include <objc/objc.h>
/* Test very simple @encode */
int main (void)
{
if (strcmp ("i", @encode (int)))
{
abort ();
}
if (strcmp ("@", @encode (id)))
{
abort ();
}
if (strcmp ("@", @encode (TestsuiteObject *)))
{
abort ();
}
if (strcmp (":", @encode (SEL)))
{
abort ();
}
return 0;
}
|