Skip to content

Commit 6da3333

Browse files
author
Robert Widmann
committed
Tests
1 parent ce62951 commit 6da3333

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// swift-interface-format-version: 1.0
2+
// swift-module-flags: -module-name Bottom -module-abi-name Top -module-interface-preserve-types-as-written
3+
4+
import Swift
5+
6+
public protocol Aspect {
7+
associatedtype Orientation : Bottom.Aspect
8+
var orientation: Self.Orientation { get }
9+
}
10+
11+
public struct Parameter {
12+
}
13+
14+
public struct ReferencesTop {
15+
public func orientation(of parameter: Bottom.Parameter) -> some Bottom.Aspect
16+
17+
public typealias Orientation = @_opaqueReturnTypeOf("$s3Top13ReferencesTopV11orientation2ofQrAA9ParameterV_tF", 0) __
18+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// swift-interface-format-version: 1.0
2+
// swift-module-flags: -module-name Top -module-interface-preserve-types-as-written
3+
4+
@_exported import Bottom
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
/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
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// RUN: %empty-directory(%t)
2+
3+
// RUN: %target-swift-typecheck-module-from-interface(%S/Inputs/opaque-type-abi-name/Bottom.swiftinterface) -module-name Bottom -o %t/Bottom.swiftmodule -verify
4+
// RUN: %target-swift-typecheck-module-from-interface(%S/Inputs/opaque-type-abi-name/Top.swiftinterface) -module-name Top -o %t/Top.swiftmodule -verify -I %S/Inputs/opaque-type-abi-name

0 commit comments

Comments
 (0)