mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change the mangling of accessors to have a variable or subscript node as their only child node, while subscript nodes no longer contain a decl name.
11 lines
247 B
Swift
11 lines
247 B
Swift
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
|
|
|
|
// CHECK-LABEL: sil private @_T026closure_inline_initializer3FooV3fooSivpfiSiycfU_
|
|
|
|
struct Foo {
|
|
var foo: Int = { 2 }()
|
|
|
|
init(x: Int) {}
|
|
init(y: Int) {}
|
|
}
|