mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
15 lines
636 B
Swift
15 lines
636 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift -emit-library %s %S/Inputs/protocol-conformance-member-helper.swift -o %t/%target-library-name(Test) -module-name Test
|
|
// RUN: llvm-readobj --symbols --coff-exports %t/%target-library-name(Test) | %FileCheck %s
|
|
|
|
// CHECK: Name: {{_?}}$s4Test10CoolStructV10coolFactorSdvg
|
|
|
|
// https://github.com/apple/swift/issues/42778
|
|
// Make sure we synthesize getters for members used as protocol witnesses.
|
|
// Check that we link correctly; we don't care which file synthesizes it.
|
|
|
|
protocol CoolStructProtocol {
|
|
var coolFactor: Double { get }
|
|
}
|
|
extension CoolStruct : CoolStructProtocol {}
|