mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
14 lines
320 B
Text
14 lines
320 B
Text
#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;
|
|
}
|
|
}
|