Files
swift-mirror/test/SILGen/crashers_silgen.swift
Michael Gottesman 20c3e1e92f [semantic-sil] Update 45 SILGen tests for ownership.
Very roughly this increases the total coverage of SILGen tests with ownership
enabled to ~20%.

rdar://33358110
2017-08-20 19:11:55 -07:00

18 lines
425 B
Swift

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -o /dev/null %s
// <rdar://22000564> Crash on Subscript taking a tuple argument list
class r22000564 {
subscript (position: (Int, Int)) -> Int {
get { return 32 }
set {}
}
subscript(native native: Int) -> Int {
get { return native }
set {}
}
subscript (position position: (Int, Int)) -> Int {
get { return 32 }
set {}
}
}