1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-swift-frontend %s -typecheck -module-name Functions -clang-header-expose-decls=has-expose-attr -emit-clang-header-path %t/functions.h
2
+ // RUN: %target-swift-frontend %s -typecheck -module-name Functions -enable-experimental-cxx-interop -emit-clang-header-path %t/functions.h
3
3
// RUN: %FileCheck %s < %t/functions.h
4
4
5
- // RUN: %check-interop-cxx-header-in-clang(%t/functions.h)
5
+ // RUN: %check-interop-cxx-header-in-clang(%t/functions.h -Wno-shadow -Wno-unused-function )
6
6
7
7
// CHECK-LABEL: namespace Functions __attribute__((swift_private)) {
8
8
@@ -31,7 +31,7 @@ public func emptyThrowFunction() throws { print("passEmptyThrowFunction") }
31
31
// CHECK: void* _ctx = nullptr;
32
32
// CHECK: _impl::$s9Functions18emptyThrowFunctionyyKF(_ctx, &opaqueError);
33
33
// CHECK: if (opaqueError != nullptr)
34
- // CHECK: throw (swift ::Error(opaqueError))
34
+ // CHECK: throw (Swift ::Error(opaqueError))
35
35
// CHECK: }
36
36
37
37
class TestDestroyed {
@@ -53,7 +53,7 @@ public func testDestroyedError() throws { throw DestroyedError() }
53
53
// CHECK: void* _ctx = nullptr;
54
54
// CHECK: _impl::$s9Functions18testDestroyedErroryyKF(_ctx, &opaqueError);
55
55
// CHECK: if (opaqueError != nullptr)
56
- // CHECK: throw (swift ::Error(opaqueError))
56
+ // CHECK: throw (Swift ::Error(opaqueError))
57
57
// CHECK: }
58
58
59
59
@_expose ( Cxx)
@@ -67,7 +67,7 @@ public func throwFunction() throws {
67
67
// CHECK: void* _ctx = nullptr;
68
68
// CHECK: _impl::$s9Functions13throwFunctionyyKF(_ctx, &opaqueError);
69
69
// CHECK: if (opaqueError != nullptr)
70
- // CHECK: throw (swift ::Error(opaqueError))
70
+ // CHECK: throw (Swift ::Error(opaqueError))
71
71
// CHECK: }
72
72
73
73
@_expose ( Cxx)
@@ -82,6 +82,6 @@ public func throwFunctionWithReturn() throws -> Int {
82
82
// CHECK: void* _ctx = nullptr;
83
83
// CHECK: auto returnValue = _impl::$s9Functions23throwFunctionWithReturnSiyKF(_ctx, &opaqueError);
84
84
// CHECK: if (opaqueError != nullptr)
85
- // CHECK: throw (swift ::Error(opaqueError))
85
+ // CHECK: throw (Swift ::Error(opaqueError))
86
86
// CHECK: return returnValue;
87
87
// CHECK: }
0 commit comments