// RUN: %target-swift-frontend -primary-file %s -emit-ir | FileCheck %s // REQUIRES: CPU=i386_or_x86_64 // struct OptionalStreamAdaptor { // CHECK: define hidden void @_TFV15generic_ternary21OptionalStreamAdaptor4next{{.*}}(%Sq{{.*}}* noalias nocapture sret, %swift.type* %"OptionalStreamAdaptor", %V15generic_ternary21OptionalStreamAdaptor* nocapture dereferenceable({{.*}})) mutating func next() -> Optional { return x[0].next() } var x: [T] }