Files
swift-mirror/test/SIL/Parser/available.sil
Saleem Abdulrasool 5a4878214b test: disable SIL tests on Windows
`weak_imported` is not supported on Windows as it does not provide weak
linking semantics.  Disable the tests on Windows.
2019-09-08 09:01:12 -07:00

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) () -> ()