summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/objc/execute/selector-1.m
blob: 7e21da52a5edd3d5f200bf4d8b57a6b3e78689fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Contributed by Nicola Pero - Thu Mar  8 16:27:46 CET 2001 */
#include <objc/objc.h>
#include <objc/objc-api.h>
#include <objc/Object.h>

int main (void)
{
  SEL selector;

  selector = @selector (alloc);
  if (strcmp (sel_get_name (selector), "alloc"))
    {
      abort ();
    }

  return 0;
}
OpenPOWER on IntegriCloud