Fixup tests for -assume-parsing-unqualified-ownership-sil => [ossa] transition.

This commit is contained in:
Michael Gottesman
2018-12-17 11:24:27 -08:00
parent 622993890a
commit 40a09c9c21
421 changed files with 3728 additions and 3728 deletions

View File

@@ -48,7 +48,7 @@ extension P {
protocol PoC : C<Int> {}
*/
// CHECK-LABEL: sil hidden @{{.*}}storedProperties
// CHECK-LABEL: sil hidden [ossa] @{{.*}}storedProperties
func storedProperties<T>(_: T) {
// CHECK: keypath $WritableKeyPath<S<T>, T>, <τ_0_0> (root $S<τ_0_0>; stored_property #S.x : $τ_0_0) <T>
_ = \S<T>.x
@@ -66,7 +66,7 @@ func storedProperties<T>(_: T) {
_ = \C<T>.z.z.y
}
// CHECK-LABEL: sil hidden @{{.*}}computedProperties
// CHECK-LABEL: sil hidden [ossa] @{{.*}}computedProperties
func computedProperties<T: P>(_: T) {
// CHECK: keypath $ReferenceWritableKeyPath<C<T>, S<T>>, <τ_0_0 where τ_0_0 : P> (
// CHECK-SAME: root $C<τ_0_0>;
@@ -167,7 +167,7 @@ struct Concrete: P {
var y: String
}
// CHECK-LABEL: sil hidden @$s8keypaths35keyPathsWithSpecificGenericInstanceyyF
// CHECK-LABEL: sil hidden [ossa] @$s8keypaths35keyPathsWithSpecificGenericInstanceyyF
func keyPathsWithSpecificGenericInstance() {
// CHECK: keypath $KeyPath<Concrete, String>, (
// CHECK-SAME: gettable_property $String,
@@ -201,7 +201,7 @@ struct OptionalFields2 {
var y: OptionalFields?
}
// CHECK-LABEL: sil hidden @$s8keypaths18keyPathForOptionalyyF
// CHECK-LABEL: sil hidden [ossa] @$s8keypaths18keyPathForOptionalyyF
func keyPathForOptional() {
// CHECK: keypath $WritableKeyPath<OptionalFields, S<Int>>, (
// CHECK-SAME: stored_property #OptionalFields.x : $Optional<S<Int>>;
@@ -235,7 +235,7 @@ final class FinalStorageQualified {
init() { fatalError() }
}
// CHECK-LABEL: sil hidden @{{.*}}keyPathForStorageQualified
// CHECK-LABEL: sil hidden [ossa] @{{.*}}keyPathForStorageQualified
func keyPathForStorageQualified() {
// CHECK: = keypath $ReferenceWritableKeyPath<StorageQualified, Optional<StorageQualified>>,
// CHECK-SAME: settable_property $Optional<StorageQualified>, id #StorageQualified.tooWeak!getter.1
@@ -264,7 +264,7 @@ struct IUOBlob {
}
}
// CHECK-LABEL: sil hidden @{{.*}}11iuoKeyPaths
// CHECK-LABEL: sil hidden [ossa] @{{.*}}11iuoKeyPaths
func iuoKeyPaths() {
// CHECK: = keypath $WritableKeyPath<IUOProperty, Int>,
// CHECK-SAME: stored_property #IUOProperty.iuo
@@ -316,7 +316,7 @@ struct Subscripts<T> {
}
}
// CHECK-LABEL: sil hidden @{{.*}}10subscripts
// CHECK-LABEL: sil hidden [ossa] @{{.*}}10subscripts
func subscripts<T: Hashable, U: Hashable>(x: T, y: U, s: String) {
_ = \Subscripts<T>.[]
_ = \Subscripts<T>.[generic: x]
@@ -348,7 +348,7 @@ func subscripts<T: Hashable, U: Hashable>(x: T, y: U, s: String) {
_ = \Subscripts<T>.[Treble()]
}
// CHECK-LABEL: sil hidden @{{.*}}subclass_generics
// CHECK-LABEL: sil hidden [ossa] @{{.*}}subclass_generics
func subclass_generics<T: C<Int>, U: C<V>, V/*: PoC*/>(_: T, _: U, _: V) {
_ = \T.x
_ = \T.z
@@ -386,7 +386,7 @@ func subclass_generics<T: C<Int>, U: C<V>, V/*: PoC*/>(_: T, _: U, _: V) {
*/
}
// CHECK-LABEL: sil hidden @{{.*}}identity
// CHECK-LABEL: sil hidden [ossa] @{{.*}}identity
func identity<T>(_: T) {
// CHECK: keypath $WritableKeyPath<T, T>, <τ_0_0> ({{.*}}root $τ_0_0) <T>
let _: WritableKeyPath<T, T> = \T.self