summaryrefslogtreecommitdiffstats
path: root/Tests/Objective-C/simple-build-test/main.m
blob: 970d5548e7e61b4d292096ddcdb36f269e6e0f0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#import <Foundation/Foundation.h>
#import "foo.h"

int main(int argc, char **argv)
{
  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  Foo *theFoo = [[Foo alloc] init];
  theFoo.age = [NSNumber numberWithInt:argc];
  NSLog(@"%d\n",[theFoo.age intValue]);
  [pool release];
  return 0;
}