Merge pull request #85492 from swiftlang/rauhul/cxx-exception-personality

This commit is contained in:
Rauhul Varma
2025-12-01 08:25:25 -08:00
committed by GitHub
3 changed files with 37 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend %s -enable-experimental-feature Embedded -O -c -o %t/main.o -cxx-interoperability-mode=default
// RUN: %target-clang %target-clang-resource-dir-opt %t/main.o -o %t/a.out -dead_strip
// RUN: %target-run %t/a.out | %FileCheck %s
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: swift_feature_Embedded
@_expose(Cxx)
func f1() {
print("OK!")
}
f1()
// CHECK: OK!