mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
32 lines
804 B
Swift
32 lines
804 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: split-file %s %t
|
|
|
|
// RUN: %target-swift-frontend -typecheck -module-name MyModule \
|
|
// RUN: -swift-version 5 \
|
|
// RUN: -o %t/MyModule.swiftmodule \
|
|
// RUN: %t/MyModuleOk.swift -I%t
|
|
|
|
// RUN: %target-swift-frontend -typecheck -module-name MyModule \
|
|
// RUN: -swift-version 5 \
|
|
// RUN: -o %t/MyModule.swiftmodule \
|
|
// RUN: %t/MyModule.swift -I%t \
|
|
// RUN: -module-alias Mod___MyModule=MyModule
|
|
|
|
//--- module.modulemap
|
|
module MyModule {
|
|
header "MyModule.h"
|
|
}
|
|
|
|
//--- MyModule.h
|
|
struct UnderlyingType {};
|
|
|
|
//--- MyModuleOk.swift
|
|
|
|
@_exported import MyModule
|
|
public func refToUnderlying(_ a: MyModule.UnderlyingType) {}
|
|
|
|
//--- MyModule.swift
|
|
|
|
@_exported import Mod___MyModule
|
|
public func refToUnderlying(_ a: Mod___MyModule.UnderlyingType) {}
|