Skip to content

Commit 0965a63

Browse files
committed
Test case
1 parent dcfd916 commit 0965a63

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/ModuleInterface/features.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
// the uses of those features are guarded by appropriate #if's that allow older
1010
// compilers to skip over the uses of newer features.
1111

12+
// CHECK: #if compiler(>=5.3) && $SpecializeAttributeWithAvailability
13+
// CHECK: @_specialize(exported: true, kind: full, availability: macOS, introduced: 12; where T == Swift.Int)
14+
// CHECK: public func specializeWithAvailability<T>(_ t: T)
15+
// CHECK: #else
16+
// CHECK: public func specializeWithAvailability<T>(_ t: T)
17+
// CHECK: #endif
18+
@_specialize(exported: true, availability: macOS 12, *; where T == Int)
19+
public func specializeWithAvailability<T>(_ t: T) {
20+
}
21+
1222
// CHECK: #if compiler(>=5.3) && $Actors
1323
// CHECK-NEXT: public actor MyActor
1424
// CHECK: @_semantics("defaultActor") nonisolated final public var unownedExecutor: _Concurrency.UnownedSerialExecutor {

0 commit comments

Comments
 (0)