mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
`module.map` as a module map name has been discouraged since 2014, and Clang will soon warn on its usage. This patch renames all instances of `module.map` in the Swift tests to `module.modulemap` in preparation for this change to Clang. rdar://106123303
9 lines
565 B
Swift
9 lines
565 B
Swift
// Emit the explicit system module.
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-pcm -module-name script -Xcc -Xclang -Xcc -emit-module -Xcc -Xclang -Xcc -fsystem-module -o %t/script.pcm %S/Inputs/custom-modules/module.modulemap
|
|
|
|
// Verify that the input modulemap if marked [System] in the output of the -dump-pcm action.
|
|
// RUN: %swift-dump-pcm %t/script.pcm | %FileCheck %s --check-prefix=CHECK-SYSTEM-INPUT
|
|
// CHECK-SYSTEM-INPUT: Input file: {{.*[/\\]}}ClangImporter{{/|\\}}Inputs{{/|\\}}custom-modules{{/|\\}}module.modulemap [System]
|
|
import script
|