Codebase list ohcount / 6ef9399e-69b6-464b-98a8-52915e284046/upstream test / detect_files / t1.m
6ef9399e-69b6-464b-98a8-52915e284046/upstream

Tree @6ef9399e-69b6-464b-98a8-52915e284046/upstream (Download .tar.gz)

t1.m @6ef9399e-69b6-464b-98a8-52915e284046/upstreamraw · 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]);
}