summaryrefslogtreecommitdiff
path: root/Tests/ObjCXX/simple-build-test/main.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ObjCXX/simple-build-test/main.mm')
-rw-r--r--Tests/ObjCXX/simple-build-test/main.mm14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/ObjCXX/simple-build-test/main.mm b/Tests/ObjCXX/simple-build-test/main.mm
new file mode 100644
index 000000000..7c85551f0
--- /dev/null
+++ b/Tests/ObjCXX/simple-build-test/main.mm
@@ -0,0 +1,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;
+}