// RUN: %empty-directory(%t) // RUN: %target-swift-frontend -emit-module %S/Inputs/mangle_conformance_access_path_helper.swift -emit-module-path %t/mangle_conformance_access_path_helper.swiftmodule // RUN: %target-swift-frontend -emit-silgen %s -I %t | %FileCheck %s import mangle_conformance_access_path_helper struct GG {} // This is a retroactive conformance. extension G : P where T : P {} // The mangling of GG> will contain a conformance access path // for (Y.U.U : P). This path is (Y : R)(Self.U.U : P). The 'Self.U.U' // uses the short mangling if 'Self.U' only conforms to a single // protocol. However, this check was being performed in the original // generic signature , and not the generic signature // for the protocol R, which is . // CHECK-LABEL: sil hidden [ossa] @$s30mangle_conformance_access_path3fooyyAA2GGVy0a1_b1_c1_D7_helper1GVy1U_AHQY_GAjE1PAAq_AE1RHD1_AH_AHQZAeKHA2__HCg_G_xq_tAeLR_r0_lF : $@convention(thin) (GG>, @in_guaranteed X, @in_guaranteed Y) -> () func foo(_: GG>, _: X, _: Y) {}