mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
`weak_imported` is not supported on Windows as it does not provide weak linking semantics. Disable the tests on Windows.
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
// RUN: %target-sil-opt %s | %FileCheck %s
|
|
// RUN: %target-sil-opt %s | %target-sil-opt | %FileCheck %s
|
|
// UNSUPPORTED: OS=windows-msvc
|
|
|
|
@available(*,unavailable,message: "it has been renamed")
|
|
public struct mmConstUnsafePointer<T> {
|
|
}
|
|
|
|
// CHECK-LABEL: sil hidden @test : $@convention(thin) <T> (@thin mmConstUnsafePointer<T>.Type) -> mmConstUnsafePointer<T> {
|
|
// CHECK: struct $mmConstUnsafePointer<T> ()
|
|
sil hidden @test : $@convention(thin) <T> (@thin mmConstUnsafePointer<T>.Type) -> mmConstUnsafePointer<T> {
|
|
bb0(%0 : $@thin mmConstUnsafePointer<T>.Type):
|
|
%1 = struct $mmConstUnsafePointer<T> ()
|
|
return %1 : $mmConstUnsafePointer<T>
|
|
}
|
|
|
|
// CHECK-LABEL: sil [available 123] @version_major : $@convention(thin) () -> ()
|
|
sil [available 123] @version_major : $@convention(thin) () -> ()
|
|
|
|
// CHECK-LABEL: sil [available 123.321] @version_minor : $@convention(thin) () -> ()
|
|
sil [available 123.321] @version_minor : $@convention(thin) () -> ()
|
|
|
|
// CHECK-LABEL: sil [available 123.321.444] @version_subminor : $@convention(thin) () -> ()
|
|
sil [available 123.321.444] @version_subminor : $@convention(thin) () -> ()
|
|
|
|
// CHECK-LABEL: sil [weak_imported] @weak_func : $@convention(thin) () -> ()
|
|
sil [weak_imported] @weak_func : $@convention(thin) () -> ()
|