blob: 99b7ccfc56da006e5a4563390b789e8c3ce3e854 [file] [log] [blame]
// Try with and without whole module optimization
// RUN: %target-build-swift %S/Inputs/library.swift %S/main.swift
// RUN: %target-build-swift -whole-module-optimization %S/Inputs/library.swift %S/main.swift
// REQUIRES: objc_interop
import CoreGraphics
// Case 1 - witness is imported accessor
protocol MyPoint {
associatedtype FloatType
var x: FloatType { get set }
var y: FloatType { get set }
}
extension CGPoint: MyPoint {}
// Case 2 - witness is extension method of imported type
protocol MyProto {
var z: Float { get set }
}
extension CGPoint : MyProto {}
// Dummy statement
_ = ()