|
| 1 | +// UNSUPPORTED: OS=windows-msvc |
1 | 2 | // RUN: %empty-directory(%t)
|
2 | 3 | // RUN: mkdir -p %t/clang-module-cache
|
3 | 4 | // RUN: mkdir -p %t/inputs
|
4 | 5 | // RUN: echo "public func foo() {}" >> %t/foo.swift
|
5 | 6 | // RUN: %target-swift-frontend -emit-module -emit-module-path %t/inputs/Foo.swiftmodule -emit-module-doc-path %t/inputs/Foo.swiftdoc -emit-module-source-info -emit-module-source-info-path %t/inputs/Foo.swiftsourceinfo -module-cache-path %t.module-cache %t/foo.swift -module-name Foo
|
| 7 | +// RUN: %target-swift-emit-pcm -module-name SwiftShims %swift_obj_root/lib/swift/shims/module.modulemap -o %t/inputs/SwiftShims.pcm |
| 8 | +// RUN: %target-swift-emit-pcm -module-name _SwiftConcurrencyShims %swift_obj_root/lib/swift/shims/module.modulemap -o %t/inputs/_SwiftConcurrencyShims.pcm |
6 | 9 |
|
7 | 10 | // RUN: echo "[{" > %/t/inputs/map.json
|
8 | 11 | // RUN: echo "\"moduleName\": \"Foo\"," >> %/t/inputs/map.json
|
|
32 | 35 | // RUN: echo "\"isFramework\": false" >> %/t/inputs/map.json
|
33 | 36 | // RUN: echo "}," >> %/t/inputs/map.json
|
34 | 37 | // RUN: echo "{" >> %/t/inputs/map.json
|
| 38 | +// RUN: echo "\"moduleName\": \"SwiftShims\"," >> %/t/inputs/map.json |
| 39 | +// RUN: echo "\"isFramework\": false," >> %/t/inputs/map.json |
| 40 | +// RUN: echo "\"clangModuleMapPath\": \"%swift_obj_root/lib/swift/shims/module.modulemap\"," >> %/t/inputs/map.json |
| 41 | +// RUN: echo "\"clangModulePath\": \"%t/inputs/SwiftShims.pcm\"" >> %/t/inputs/map.json |
| 42 | +// RUN: echo "}," >> %/t/inputs/map.json |
| 43 | +// RUN: echo "{" >> %/t/inputs/map.json |
| 44 | +// RUN: echo "\"moduleName\": \"_SwiftConcurrencyShims\"," >> %/t/inputs/map.json |
| 45 | +// RUN: echo "\"isFramework\": false," >> %/t/inputs/map.json |
| 46 | +// RUN: echo "\"clangModuleMapPath\": \"%swift_obj_root/lib/swift/shims/module.modulemap\"," >> %/t/inputs/map.json |
| 47 | +// RUN: echo "\"clangModulePath\": \"%t/inputs/_SwiftConcurrencyShims.pcm\"" >> %/t/inputs/map.json |
| 48 | +// RUN: echo "}," >> %/t/inputs/map.json |
| 49 | +// RUN: echo "{" >> %/t/inputs/map.json |
35 | 50 | // RUN: echo "\"moduleName\": \"Distributed\"," >> %/t/inputs/map.json
|
36 | 51 | // RUN: echo "\"modulePath\": \"%/distributed_module\"," >> %/t/inputs/map.json
|
37 | 52 | // RUN: echo "\"isFramework\": false" >> %/t/inputs/map.json
|
38 | 53 | // RUN: echo "}]" >> %/t/inputs/map.json
|
39 | 54 |
|
40 |
| -// RUN: %target-swift-frontend -typecheck %s -explicit-swift-module-map-file %t/inputs/map.json -disable-implicit-swift-modules |
| 55 | +// RUN: %target-swift-frontend -typecheck %s -explicit-swift-module-map-file %t/inputs/map.json -disable-implicit-swift-modules -disable-implicit-concurrency-module-import |
41 | 56 | #if canImport(Foo)
|
42 | 57 | import Foo
|
43 | 58 | #endif
|
0 commit comments