mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Tests
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-module-flags: -module-name Bottom -module-abi-name Top -module-interface-preserve-types-as-written
|
||||
|
||||
import Swift
|
||||
|
||||
public protocol Aspect {
|
||||
associatedtype Orientation : Bottom.Aspect
|
||||
var orientation: Self.Orientation { get }
|
||||
}
|
||||
|
||||
public struct Parameter {
|
||||
}
|
||||
|
||||
public struct ReferencesTop {
|
||||
public func orientation(of parameter: Bottom.Parameter) -> some Bottom.Aspect
|
||||
|
||||
public typealias Orientation = @_opaqueReturnTypeOf("$s3Top13ReferencesTopV11orientation2ofQrAA9ParameterV_tF", 0) __
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// swift-interface-format-version: 1.0
|
||||
// swift-module-flags: -module-name Top -module-interface-preserve-types-as-written
|
||||
|
||||
@_exported import Bottom
|
||||
3
test/ModuleInterface/Inputs/opaque-type-abi-name/test.sh
Normal file
3
test/ModuleInterface/Inputs/opaque-type-abi-name/test.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/Users/rwidmann/SwiftInternal/build/Ninja-Release/swift-macosx-arm64/bin/swift-frontend -sdk $(xcrun --show-sdk-path) -compile-module-from-interface -module-name Bottom -o Bottom.swiftmodule Bottom.swiftinterface -verify
|
||||
Reference in New Issue
Block a user