1 // A basic sanity check for Objective-C++.
4 #include <objc/Object.h>
7 @interface Greeter : Object
8 - (void) greet: (const char *)msg;
11 @implementation Greeter
12 - (void) greet: (const char *)msg { std::cout << msg; }
18 std::cout << "Hello from C++\n";
19 Greeter *obj = [Greeter new];
20 [obj greet: "Hello from Objective-C\n"];