Files
swift-mirror/test/SIL/Serialization/public_external.sil
2015-09-24 16:01:00 +00:00

23 lines
716 B
Plaintext

// RUN: %target-swift-frontend %s -parse-sil -emit-module -module-name Swift -module-link-name swiftCore -parse-stdlib -parse-as-library -sil-serialize-all -o - | %target-sil-opt -module-name Swift | FileCheck %s
// CHECK-NOT: sil public_external @pe : $@convention(thin) () -> () {
// CHECK-NOT: sil hidden_external @he : $@convention(thin) () -> () {
// CHECK-NOT: sil shared_external @se : $@convention(thin) () -> () {
import Builtin
sil public_external @pe : $@convention(thin) () -> () {
%0 = tuple()
return %0 : $()
}
sil hidden_external @he : $@convention(thin) () -> () {
%0 = tuple()
return %0 : $()
}
sil shared_external @se : $@convention(thin) () -> () {
%0 = tuple()
return %0 : $()
}