summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc/execute/selector-1.m
blob: 66eee67c024e89ca3127a824b4b6401cfb1289e3 (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-obj-c++-shared/runtime.h"
#include "../../objc-obj-c++-shared/TestsuiteObject.m"

int main (void)
{
  SEL selector;
  char *selname;

  selector = @selector (alloc);
  selname = sel_getName (selector);
  if (strcmp (selname, "alloc"))
    abort ();

  return 0;
}