Files
swift-mirror/test/SILGen/c_materializeForSet_linkage.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

27 lines
915 B
Swift

// RUN: %target-swift-frontend -sdk %S/Inputs -I %S/Inputs -enable-source-import %s -emit-silgen -enable-sil-ownership | %FileCheck %s
// REQUIRES: objc_interop
import AppKit
protocol Pointable {
var x: Float { get set }
var y: Float { get set }
}
extension NSPoint: Pointable {}
extension NSReferencePoint: Pointable {}
// Make sure synthesized materializeForSet and its callbacks have shared linkage
// for properties imported from Clang
// CHECK-LABEL: sil shared [transparent] [serializable] @_T0SC7NSPointV1xSfvm
// CHECK-LABEL: sil shared [transparent] [serializable] @_T0SC7NSPointV1ySfvm
// CHECK-LABEL: sil shared [serializable] @_T0So16NSReferencePointC1xSfvmytfU_
// CHECK-LABEL: sil shared [serializable] @_T0So16NSReferencePointC1xSfvm
// CHECK-LABEL: sil shared [serializable] @_T0So16NSReferencePointC1ySfvmytfU_
// CHECK-LABEL: sil shared [serializable] @_T0So16NSReferencePointC1ySfvm