From bf9ff6e5eee7a5b7bfb2b50b0dc5bf948e87eaae Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 1 Aug 2025 15:33:41 +0300 Subject: Condense test directory names for 1.9. --- test cases/swift/11 mixed cpp/mylib.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test cases/swift/11 mixed cpp/mylib.cpp (limited to 'test cases/swift/11 mixed cpp/mylib.cpp') diff --git a/test cases/swift/11 mixed cpp/mylib.cpp b/test cases/swift/11 mixed cpp/mylib.cpp new file mode 100644 index 000000000..0c616814e --- /dev/null +++ b/test cases/swift/11 mixed cpp/mylib.cpp @@ -0,0 +1,22 @@ +#include "mylib.h" +#include + +Test::Test() { + std::cout << "Test initialized" << std::endl; +} + +Test::Test(int param) { + std::cout << "Test initialized with param " << param << std::endl; +} + +void Test::testCallFromClass() { + std::cout << "Calling C++ class function from Swift is working" << std::endl; +} + +void testCallFromSwift() { + std::cout << "Calling this C++ function from Swift is working" << std::endl; +} + +void testCallWithParam(const std::string ¶m) { + std::cout << param << std::endl; +} -- cgit v1.2.3