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