Files
swift-mirror/test/SIL/Serialization/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

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 : $()
}