Files
swift-mirror/test/SILGen/for_loop_tuple_destructure_reabstraction.swift
Michael Gottesman 4ea0a402e1 [silgen] Update 31 more tests to run with the ownership verifier enabled.
Now ~32% of the SILGen tests run with the ownership verifier enabled.

rdar://33358110
2017-08-21 16:40:22 -07:00

9 lines
201 B
Swift

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