Codebase list ohcount / run/8fccc97f-1091-4606-8a80-1b8fb386766a/main test / detect_files / t1.m
run/8fccc97f-1091-4606-8a80-1b8fb386766a/main

Tree @run/8fccc97f-1091-4606-8a80-1b8fb386766a/main (Download .tar.gz)

t1.m @run/8fccc97f-1091-4606-8a80-1b8fb386766a/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]);
}