OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [encode-1.m] - Blame information for rev 310

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.