Skip to content

Commit 34b5ead

Browse files
committed
[interop][SwiftToCxx] add a test that verifies that we can emit C++ header from previously built swiftinterface
1 parent c864087 commit 34b5ead

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/Interop/SwiftToCxx/core/gen-header-for-module.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
// RUN: %target-swift-frontend -parse-as-library %t-evo/Core.swiftmodule -enable-library-evolution -typecheck -module-name Core -clang-header-expose-public-decls -emit-clang-header-path %t-evo/core.h
99
// RUN: %FileCheck %s < %t-evo/core.h
1010

11+
// RUN: %empty-directory(%t-int)
12+
// RUN: %target-swift-frontend %s -typecheck -emit-module-interface-path %t-int/Core.swiftinterface -module-name Core
13+
// RUN: %target-swift-frontend -parse-as-library %t-int/Core.swiftinterface -typecheck -module-name Core -clang-header-expose-public-decls -emit-clang-header-path %t-int/core.h
14+
// RUN: %FileCheck %s < %t-int/core.h
15+
16+
// RUN: %empty-directory(%t-int-evo)
17+
// RUN: %target-swift-frontend %s -typecheck -enable-library-evolution -emit-module-interface-path %t-int-evo/Core.swiftinterface -module-name Core
18+
// RUN: %target-swift-frontend -parse-as-library %t-int-evo/Core.swiftinterface -typecheck -enable-library-evolution -module-name Core -clang-header-expose-public-decls -emit-clang-header-path %t-int-evo/core.h
19+
// RUN: %FileCheck %s < %t-int-evo/core.h
1120

1221
public func reprintedInImportedModule() -> Int {
1322
return 42

0 commit comments

Comments
 (0)