Codebase list ohcount / 85104d5a-b71d-4620-9315-33d4daf34104/main test / detect_files / t1.m
85104d5a-b71d-4620-9315-33d4daf34104/main

Tree @85104d5a-b71d-4620-9315-33d4daf34104/main (Download .tar.gz)

t1.m @85104d5a-b71d-4620-9315-33d4daf34104/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]);
}