mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
448 B
Swift
19 lines
448 B
Swift
// RUN: %target-swift-frontend -O -module-name=test -emit-sil %s | grep -v debug_value | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// Check if the optimizer can remove dead briding calls.
|
|
|
|
import Foundation
|
|
|
|
class Myclass : NSObject {
|
|
|
|
// CHECK-LABEL: sil private [thunk] {{.*}}@$s4test7MyclassC3fooyySSFTo
|
|
// CHECK: bb0(%0 : $NSString, %1 : $Myclass):
|
|
// CHECK-NEXT: tuple ()
|
|
// CHECK-NEXT: return
|
|
@objc func foo(_ s: String) {
|
|
}
|
|
}
|
|
|