// RUN: %target-swift-frontend -Xllvm -sil-print-types -emit-sil -primary-file %s | %FileCheck %s class C {} protocol P { func f() } // CHECK-LABEL: sil hidden [transparent] @$s27inline_subclass_existential3fooyyAA1P_AA1CCyxGXclF : $@convention(thin) (@guaranteed any C & P) -> () { // CHECK: open_existential_ref %0 : $any C & P to $@opened("{{.*}}", any C & P) Self // CHECK: return @_transparent func foo(_ x: C & P) { x.f() } // CHECK-LABEL: sil hidden @$s27inline_subclass_existential3baryyAA1P_AA1CCySiGXcF : $@convention(thin) (@guaranteed any C & P) -> () { // CHECK: open_existential_ref %0 : $any C & P to $@opened("{{.*}}", any C & P) Self // CHECK: return func bar(_ x: C & P) { foo(x) }