summaryrefslogtreecommitdiff
path: root/Tests/ObjCXX/simple-build-test/main.mm
blob: 7c85551f0a854cf9e58ac810af89af21f9198d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#import <Foundation/Foundation.h>
#import "foo.h"
#include <iostream>

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]);
  std::cout << [theFoo.age intValue] << std::endl;
  [pool release];
  return 0;
}