mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #85492 from swiftlang/rauhul/cxx-exception-personality
This commit is contained in:
17
test/embedded/linkage/cxx-exceptions.swift
Normal file
17
test/embedded/linkage/cxx-exceptions.swift
Normal 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!
|
||||
Reference in New Issue
Block a user