diff options
Diffstat (limited to 'test/link/objc/test.m')
| -rw-r--r-- | test/link/objc/test.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/link/objc/test.m b/test/link/objc/test.m new file mode 100644 index 0000000000..3c81316788 --- /dev/null +++ b/test/link/objc/test.m @@ -0,0 +1,12 @@ +#import "Foo.h" +#import <assert.h> + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + Foo *foo = [[Foo alloc] init]; + NSString *result = [foo name]; + assert([result isEqualToString:@"Zig"]); + return 0; + } +} |
