File tree 2 files changed +5
-3
lines changed
test/Interop/SwiftToCxxToSwift
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,7 @@ void ClangValueTypePrinter::printTypePrecedingGenericTraits(
544
544
ClangSyntaxPrinter printer (os);
545
545
// FIXME: avoid popping out of the module's namespace here.
546
546
os << " } // end namespace \n\n " ;
547
- os << " namespace swift {\n " ;
547
+ os << " namespace swift SWIFT_PRIVATE_ATTR {\n " ;
548
548
549
549
os << " #pragma clang diagnostic push\n " ;
550
550
os << " #pragma clang diagnostic ignored \" -Wc++17-extensions\"\n " ;
@@ -570,7 +570,7 @@ void ClangValueTypePrinter::printTypeGenericTraits(
570
570
ClangSyntaxPrinter printer (os);
571
571
// FIXME: avoid popping out of the module's namespace here.
572
572
os << " } // end namespace \n\n " ;
573
- os << " namespace swift {\n " ;
573
+ os << " namespace swift SWIFT_PRIVATE_ATTR {\n " ;
574
574
575
575
if (typeDecl->hasClangNode ()) {
576
576
// / Print a reference to the type metadata fucntion for a C++ type.
Original file line number Diff line number Diff line change 9
9
10
10
// RUN: %check-interop-cxx-header-in-clang(%t/swiftMod2.h -DSWIFT_CXX_INTEROP_HIDE_STL_OVERLAY -Wno-error)
11
11
12
- // RUN: %target-swift-ide-test -print-module -module-to-print=SwiftToCxxTest -I %t -source-filename=x -enable-experimental-cxx-interop -Xcc -DSWIFT_CXX_INTEROP_HIDE_SWIFT_ERROR
12
+ // RUN: %target-swift-ide-test -print-module -module-to-print=SwiftToCxxTest -I %t -source-filename=x -enable-experimental-cxx-interop -Xcc -DSWIFT_CXX_INTEROP_HIDE_SWIFT_ERROR | %FileCheck --check-prefix=INTERFACE %s
13
13
14
14
// XFAIL: OS=linux-android, OS=linux-androideabi
15
15
@@ -37,3 +37,5 @@ public func testFunction() -> String {
37
37
// CHECK: namespace swift SWIFT_PRIVATE_ATTR SWIFT_SYMBOL_MODULE("swift") {
38
38
// CHECK: namespace SwiftMod SWIFT_PRIVATE_ATTR SWIFT_SYMBOL_MODULE("SwiftMod") {
39
39
// CHECK-NOT: namespace swift {
40
+
41
+ // INTERFACE-NOT: enum swift
You can’t perform that action at this time.
0 commit comments