blob: 6893a03f58395f8c8029d72ce356b8d0e31e7adb [file] [log] [blame]
// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -Onone -parse-stdlib -parse-as-library -module-name TestModule -sil-serialize-all %S/Inputs/TestModule.swift -emit-module-path %t/TestModule.swiftmodule
// RUN: %target-swift-frontend -O %s -I %t -emit-sil | %FileCheck %s
// DeadFunctionElimination may not remove a method from a witness table which
// is imported from another module.
import TestModule
testit(MyStruct())
// CHECK: sil_witness_table public_external [fragile] MyStruct: Proto module TestModule
// CHECK-NEXT: method #Proto.confx!1: @_TTWV10TestModule{{.*}}confx