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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [objc/] [execute/] [selector-1.m] - Blame information for rev 862

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 <objc/objc.h>
3
#include <objc/objc-api.h>
4
#include <objc/Object.h>
5
 
6
int main (void)
7
{
8
  SEL selector;
9
  char *selname;
10
 
11
  selector = @selector (alloc);
12
#ifdef __NEXT_RUNTIME__
13
  selname = sel_getName (selector);
14
#else
15
  selname = sel_get_name (selector);
16
#endif
17
  if (strcmp (selname, "alloc"))
18
    abort ();
19
 
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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