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.
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
// First parse this and then emit a *.sib. Then read in the *.sib, then recreate
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name available
|
|
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.2.sib -module-name available
|
|
// RUN: %target-sil-opt %t/tmp.2.sib -module-name available | %FileCheck %s
|
|
// UNSUPPORTED: OS=windows-msvc
|
|
|
|
import Builtin
|
|
|
|
// CHECK-LABEL: sil [serialized] [weak_imported] @weak_func : $@convention(thin) () -> ()
|
|
sil [serialized] [weak_imported] @weak_func : $@convention(thin) () -> () {
|
|
bb0:
|
|
return undef : $()
|
|
}
|
|
|
|
// CHECK-LABEL: sil [serialized] [available 123.321.444] @version_subminor : $@convention(thin) () -> ()
|
|
sil [serialized] [available 123.321.444] @version_subminor : $@convention(thin) () -> () {
|
|
bb0:
|
|
return undef : $()
|
|
}
|
|
|
|
// CHECK-LABEL: sil [serialized] [available 123] @version_major : $@convention(thin) () -> ()
|
|
sil [serialized] [available 123] @version_major : $@convention(thin) () -> () {
|
|
bb0:
|
|
return undef : $()
|
|
}
|
|
|
|
// CHECK-LABEL: sil [serialized] [available 123.321] @version_minor : $@convention(thin) () -> ()
|
|
sil [serialized] [available 123.321] @version_minor : $@convention(thin) () -> () {
|
|
bb0:
|
|
return undef : $()
|
|
}
|