// RUN: %empty-directory(%t) // RUN: split-file %s %t // RUN: %target-swift-frontend \ // RUN: %t/Library.swift \ // RUN: -emit-module \ // RUN: -target %target-swift-5.9-abi-triple \ // RUN: -enable-library-evolution \ // RUN: -module-name Library \ // RUN: -emit-module-path %t/Library.swiftmodule // RUN: %target-build-swift \ // RUN: %t/Downstream.swift \ // RUN: -c \ // RUN: -target %target-swift-5.9-abi-triple \ // RUN: -parse-as-library \ // RUN: -module-name main \ // RUN: -lLibrary \ // RUN: -I %t \ // RUN: -o %t/Executable.o //--- Library.swift public struct Paq { public var uette: (repeat each T) } public class Loq { } // Enums don't take packs yet. // public enum Orq { // case uette(repeat each T) // case uettette(repeat each T, repeat each T) // } //--- Downstream.swift import Library struct Sleeve { var impl: Paq } func bin(_ s: consuming Sleeve) { } struct Laq { var impl: Loq var t: T } @_silgen_name("bun") func bun(_ l: consuming Laq) { } // Enums don't take packs yet. // struct Etiq { // var impl: Orq // } // // func bon(_ i: consuming Etiq) { // }