mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 16:12:33 +00:00
3bb4d65b2f
Handle `-e` option in MachO linker allowing the user to set a custom entrypoint address.
15 lines
320 B
Plaintext
15 lines
320 B
Plaintext
#import "Foo.h"
|
|
#import <assert.h>
|
|
#include <iostream>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
@autoreleasepool {
|
|
Foo *foo = [[Foo alloc] init];
|
|
NSString *result = [foo name];
|
|
std::cout << "Hello from C++ and " << [result UTF8String];
|
|
assert([result isEqualToString:@"Zig"]);
|
|
return 0;
|
|
}
|
|
}
|