aboutsummaryrefslogtreecommitdiff
path: root/test/link/macho/objc/test.m
blob: 3c81316788d075a4eb3328b90e21a270c06257c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;
  }
}