mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
524 B
Swift
14 lines
524 B
Swift
// RUN: %target-swift-frontend -primary-file %s -emit-ir | FileCheck %s
|
|
|
|
// REQUIRES: CPU=i386_or_x86_64
|
|
|
|
// <rdar://problem/13793646>
|
|
struct OptionalStreamAdaptor<T : IteratorProtocol> {
|
|
// CHECK: define hidden void @_TFV15generic_ternary21OptionalStreamAdaptor4next{{.*}}(%Sq{{.*}}* noalias nocapture sret, %swift.type* %"OptionalStreamAdaptor<T>", %V15generic_ternary21OptionalStreamAdaptor* nocapture dereferenceable({{.*}}))
|
|
mutating
|
|
func next() -> Optional<T.Element> {
|
|
return x[0].next()
|
|
}
|
|
var x: [T]
|
|
}
|