blob: 5752c7f8923a9ec6d0a050a121cb7bc10c5c2393 [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()
}