// RUN: rm -rf %t // RUN: mkdir -p %t // RUN: %target-swift-frontend -emit-module %S/Inputs/specializer_input.swift -O -sil-serialize-all -parse-stdlib -parse-as-library -emit-module -o %t/Swift.swiftmodule -module-name=Swift -module-link-name swiftCore -sil-inline-threshold 0 -disable-func-sig-opts // RUN: %target-swift-frontend %s -O -I %t -emit-sil -o - -sil-inline-threshold 0 -disable-func-sig-opts | FileCheck %s import Swift // Make sure the specializer can deserialize code. // CHECK-LABEL: sil @main // CHECK: bb0({{.*}}): // CHECK: function_ref @_TTSg5Bi32____TFVSs9ContainerCU__fMGS_Q__FT_GS_Q__ // CHECK: function_ref @_TTSg5Bi32____TFVSs9Container11doSomethingU__fGS_Q__FT_T_ : $@convention(method) (Container) -> () // CHECK-LABEL: sil shared [fragile] @_TTSg5Bi32____TFVSs9ContainerCU__fMGS_Q__FT_GS_Q__ : $@convention(thin) (@thin Container.Type) -> Container { // CHECK-LABEL: sil shared [fragile] @_TTSg5Bi32____TFVSs9Container11doSomethingU__fGS_Q__FT_T_ : $@convention(method) (Container) -> () { var c = Container() c.doSomething()