Skip to content

Commit c9c69fc

Browse files
committed
[interop][SwiftToCxx] fix foundation-type-not-exposed-by-default-to-cxx.swift test on Linux and Windows
1 parent c7836e3 commit c9c69fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/Interop/SwiftToCxx/stdlib/foundation-type-not-exposed-by-default-to-cxx.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %target-swift-frontend -typecheck %s -typecheck -module-name UseFoundation -enable-experimental-cxx-interop -emit-clang-header-path %t/UseFoundation.h
44
// RUN: %FileCheck %s < %t/UseFoundation.h
55

6-
#if canImport(Foundation)
6+
// REQURES: objc_interop
77

88
import Foundation
99

@@ -12,6 +12,4 @@ public enum UseFoundationEnum {
1212
case B
1313
}
1414

15-
#endif
16-
17-
// CHECK: class UseFoundationEnum { } SWIFT_UNAVAILABLE_MSG("Swift enum 'UseFoundationEnum' cannot be represented in C++");
15+
// CHECK: class UseFoundationEnum { } SWIFT_UNAVAILABLE_MSG("Swift enum 'UseFoundationEnum' cannot be represented in C++");

0 commit comments

Comments
 (0)