ADDED .github/workflows/CXXTest.mm Index: .github/workflows/CXXTest.mm ================================================================== --- /dev/null +++ .github/workflows/CXXTest.mm @@ -0,0 +1,31 @@ +#import + +#include + +@interface CXXTest: OFObject +@end + +OF_APPLICATION_DELEGATE(CXXTest) + +@implementation CXXTest +- (void)applicationDidFinishLaunching: (OFNotification *)notification +{ + std::string output; + + try { + @try { + throw @"Hello "; + } @catch (OFString *string) { + output += string.UTF8String; + } + + throw std::string("C++"); + } catch (std::string &string) { + output += "C++"; + } + + OFLog(@"%s", output.c_str()); + + [OFApplication terminate]; +} +@end Index: .github/workflows/macos-14.yml ================================================================== --- .github/workflows/macos-14.yml +++ .github/workflows/macos-14.yml @@ -27,5 +27,9 @@ run: make -j$(sysctl -n hw.logicalcpu) - name: make check run: make check - name: make install run: sudo make install + - name: C++ test + run: | + objfw-compile -o cxxtest .github/workflows/CXXTest.mm + ./cxxtest Index: .github/workflows/ubuntu-latest.yml ================================================================== --- .github/workflows/ubuntu-latest.yml +++ .github/workflows/ubuntu-latest.yml @@ -37,5 +37,9 @@ run: make -j$(nproc) - name: make check run: make check - name: make install run: sudo make install + - name: C++ test + run: | + objfw-compile -o cxxtest .github/workflows/CXXTest.mm + ./cxxtest