mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
e6dd2f1f12
This is a workaround to avoid missing lowering of dynamic_self in IRGen Fixes rdar://174428100
13 lines
423 B
Swift
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() }
|
|
}
|
|
}
|