|
1 |
| -// RUN: %target-run-simple-swift |
| 1 | +// RUN: rm -rf %t |
| 2 | +// RUN: mkdir -p %t |
| 3 | +// RUN: %target-build-swift %s -o %t/a.out -Xfrontend -disable-objc-attr-requires-foundation-module |
| 4 | +// RUN: %target-run %t/a.out |
2 | 5 | // REQUIRES: executable_test
|
3 | 6 |
|
4 |
| -// FIXME: rdar://problem/19648117 Needs splitting objc parts out |
5 |
| -// XFAIL: linux |
6 |
| - |
7 | 7 | import SwiftPrivate
|
8 | 8 | import StdlibUnittest
|
9 | 9 | import StdlibCollectionUnittest
|
10 | 10 |
|
11 | 11 |
|
12 |
| -import Foundation |
13 |
| - |
14 | 12 | var UTF16APIs = TestSuite("UTF16APIs")
|
15 | 13 |
|
16 | 14 | UTF16APIs.test("width") {
|
@@ -816,7 +814,7 @@ UTF8Decoder.test("Internal/_decodeOne") {
|
816 | 814 | var validLengthCounts = [ 0, 0, 0, 0, 0 ]
|
817 | 815 | var maximalSubpartCounts = [ 0, 0, 0, 0, 0 ]
|
818 | 816 | func countValidSequences(
|
819 |
| - head head: CountableClosedRange<UInt32>, tail: CountableClosedRange<UInt32> |
| 817 | + head: CountableClosedRange<UInt32>, tail: CountableClosedRange<UInt32> |
820 | 818 | ) {
|
821 | 819 | for cu0 in head {
|
822 | 820 | for rest in tail {
|
@@ -2157,6 +2155,9 @@ UnicodeAPIs.test("transcode/ReferenceTypedArray") {
|
2157 | 2155 | expectEqual(input, transcoded)
|
2158 | 2156 | }
|
2159 | 2157 |
|
| 2158 | +#if _runtime(_ObjC) |
| 2159 | +import Foundation |
| 2160 | + |
2160 | 2161 | // The most simple subclass of NSString that CoreFoundation does not know
|
2161 | 2162 | // about.
|
2162 | 2163 | class NonContiguousNSString : NSString {
|
@@ -2461,5 +2462,7 @@ StringTests.test("StreamableConformance") {
|
2461 | 2462 | }
|
2462 | 2463 | }
|
2463 | 2464 |
|
| 2465 | +#endif // _runtime(_ObjC) |
| 2466 | + |
2464 | 2467 | runAllTests()
|
2465 | 2468 |
|
0 commit comments