Initial Revision
[ohcount] / test / detect_files / t1.m
1 #include <stdio.h>
2 #include "Test.h"
3
4 @implementation Test : Object
5 {
6   int x;
7 }
8
9 - init: (int)n 
10 {
11   [super init];
12   x = n;
13   return self;
14 }
15
16 + test: (int)n
17 {
18   return [[self alloc] init: n];
19 }
20
21 - (int)x
22 {
23   return x;
24 }
25
26 @end
27
28
29 int main (int argc, char **argv)
30 {
31   printf ("%d!\n", [[Test test: 17231] x]);
32 }