Files
swift-mirror/test/SILGen/for_loop_tuple_destructure_reabstraction.swift
Michael Gottesman 9e13779702 [ownership] Remove most -enable-sil-ownership from SILGen now that %target-swift-emit-silgen does it automatically.
I did this using a sed pattern and verified by hand that I was only touching
target-swift-emit-silgen lines.
2018-12-13 11:54:54 -08:00

9 lines
169 B
Swift

// RUN: %target-swift-emit-silgen -verify %s
protocol P {}
func for_loop_tuple_destructure_reabstraction(_ x: [(P, P.Protocol)]) {
for (a, b) in x { _ = (a, b) }
}