Files
swift-mirror/test/IRGen/inline_dynamic_self.swift
T
Meghana Gupta e6dd2f1f12 Avoid inlining when substitution map has dynamic self
This is a workaround to avoid missing lowering of dynamic_self in IRGen

Fixes rdar://174428100
2026-04-09 21:00:40 -07:00

13 lines
423 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -O -emit-module-path=%t/inline_dynamic_self_module.swiftmodule -module-name=inline_dynamic_self_module %S/Inputs/inline_dynamic_self_module.swift
// RUN: %target-swift-frontend -I %t -O -emit-ir %s
import inline_dynamic_self_module
class C {
required init() {}
static func make() -> Self? {
withWrapper { _ in self.init() }
}
}