Codebase list ohcount / d4c3f612-6685-4dc0-9339-5433a0a275c0/main test / detect_files / t1.m
d4c3f612-6685-4dc0-9339-5433a0a275c0/main

Tree @d4c3f612-6685-4dc0-9339-5433a0a275c0/main (Download .tar.gz)

t1.m @d4c3f612-6685-4dc0-9339-5433a0a275c0/mainraw · history · blame

#include <stdio.h>
#include "Test.h"

@implementation Test : Object
{
  int x;
}

- init: (int)n 
{
  [super init];
  x = n;
  return self;
}

+ test: (int)n
{
  return [[self alloc] init: n];
}

- (int)x
{
  return x;
}

@end


int main (int argc, char **argv)
{
  printf ("%d!\n", [[Test test: 17231] x]);
}