mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
25 lines
946 B
Swift
25 lines
946 B
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir -p %t
|
|
// RUN: %target-swift-frontend -emit-module %S/Inputs/linker_pass_input.swift -o %t/Swift.swiftmodule -parse-stdlib -parse-as-library -module-name Swift -sil-serialize-all -module-link-name swiftCore
|
|
// RUN: %target-swift-frontend %s -O -I %t -sil-debug-serialization -o - -emit-sil | %FileCheck %s
|
|
|
|
// CHECK: sil public_external [fragile] @_TFs11doSomethingFT_T_ : $@convention(thin) () -> () {
|
|
doSomething()
|
|
|
|
// Make sure we are not linking doSomething2 because it is marked with 'noimport'
|
|
|
|
// CHECK: sil [_semantics "stdlib_binary_only"] @_TFs12doSomething2FT_T_ : $@convention(thin) () -> ()
|
|
// CHECK-NOT: return
|
|
doSomething2()
|
|
|
|
// CHECK: sil public_external [fragile] [noinline] @{{.*}}callDoSomething3{{.*}}
|
|
|
|
// CHECK: sil @unknown
|
|
|
|
// CHECK: sil [fragile] [noinline] [_semantics "stdlib_binary_only"] @{{.*}}doSomething3{{.*}}
|
|
// CHECK-NOT: return
|
|
|
|
// CHECK: sil {{.*}} @_TFVs1AC
|
|
|
|
callDoSomething3()
|