blob: 300e6a1b2ac46c2c3778067f294b40bfa3b192ef [file] [log] [blame]
// RUN: %target-swift-frontend -O -emit-sil %s %S/Inputs/internal_func.swift | FileCheck %s
// RUN: %target-swift-frontend -O -enable-testing -emit-sil %s %S/Inputs/internal_func.swift | FileCheck -check-prefix=CHECK-TESTABLE %s
// Check that an internal function from another file is removed after it gets
// dead through inlining.
// CHECK-NOT: sil {{.*}}testfunc
// CHECK-TESTABLE: sil {{.*}}testfunc
public func caller_func() {
testfunc()
}