mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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
16 lines
678 B
Swift
16 lines
678 B
Swift
// Emit the explicit module.
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-pcm -module-name script -o %t/script.pcm %S/Inputs/custom-modules/module.modulemap
|
|
|
|
// Verify some of the output of the -dump-pcm flag.
|
|
// RUN: %swift-dump-pcm %t/script.pcm | %FileCheck %s --check-prefix=CHECK-DUMP
|
|
// CHECK-DUMP: Information for module file '{{.*}}/script.pcm':
|
|
// CHECK-DUMP: Module name: script
|
|
// CHECK-DUMP: Module map file: {{.*[/\\]}}Inputs{{/|\\}}custom-modules{{/|\\}}module.modulemap
|
|
|
|
// Compile a source file that imports the explicit module.
|
|
// RUN: %target-swift-frontend -typecheck -verify -Xcc -fmodule-file=%t/script.pcm %s
|
|
|
|
import script
|
|
var _ : ScriptTy
|