Files
swift-mirror/test/SILGen/closure_inline_initializer.swift
Alex Hoppen 1c7e289b96 [Mangling] Adjust subscript mangling to not include "subscript"
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.
2017-09-10 19:44:07 +02:00

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) {}
}