mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If a module has the same `public-module-name` as the module being generated and its import is exported, merge it into the same generated interface. Fix various always-imported modules from being printed while here and update all the tests that checked for them. Resolves rdar://137887712.
15 lines
615 B
Swift
15 lines
615 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-frontend(mock-sdk: -F %S/Inputs/mock-sdk) -I %t -emit-module -o %t/FooOverlay.swiftmodule %S/Inputs/FooOverlay.swift
|
|
// RUN: %target-swift-ide-test(mock-sdk: -F %S/Inputs/mock-sdk) -I %t -print-module -source-filename %s -module-to-print=FooOverlay -function-definitions=false | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import FooOverlay
|
|
|
|
// CHECK: @_exported import Foo
|
|
// CHECK: @_exported import struct Foo.FooStruct1
|
|
// CHECK: @_exported import Foo.FooSub
|
|
// CHECK: @_exported import func Foo.fooSubFunc1
|
|
// CHECK: func fooSubOverlayFunc1(x: Int32) -> Int32
|