diff --git a/test/Sema/struct_tensor_array_protocol.swift b/test/Sema/struct_tensor_array_protocol.swift deleted file mode 100644 index a54c2f52b105c..0000000000000 --- a/test/Sema/struct_tensor_array_protocol.swift +++ /dev/null @@ -1,30 +0,0 @@ -// SWIFT_ENABLE_TENSORFLOW -// RUN: %target-swift-frontend -typecheck -verify -primary-file %s %S/Inputs/struct_tensor_array_protocol_other_module.swift - -import TensorFlow - -struct Empty : TensorArrayProtocol {} - -struct Simple : TensorArrayProtocol, Equatable { - var w, b: Tensor -} - -struct Mixed : TensorArrayProtocol, Equatable { - // Mutable. - var float: Tensor - // Immutable. - let int: Tensor -} - -struct Generic : TensorArrayProtocol, Equatable { - var t: T - var u: U -} - -// Test derived conformances in disallowed contexts. - -// expected-error @+1 4 {{implementation of 'TensorArrayProtocol' cannot be automatically synthesized in an extension in a different file to the type}} -extension OtherFileNonconforming : TensorArrayProtocol {} - -// expected-error @+1 4 {{implementation of 'TensorArrayProtocol' cannot be automatically synthesized in an extension in a different file to the type}} -extension GenericOtherFileNonconforming : TensorArrayProtocol {} diff --git a/test/Sema/struct_tensor_group.swift b/test/Sema/struct_tensor_group.swift deleted file mode 100644 index 065f45ecaffd9..0000000000000 --- a/test/Sema/struct_tensor_group.swift +++ /dev/null @@ -1,37 +0,0 @@ -// SWIFT_ENABLE_TENSORFLOW -// RUN: %target-swift-frontend -typecheck -verify -primary-file %s %S/Inputs/struct_tensor_group_other_module.swift - -import TensorFlow - -struct Empty : TensorGroup {} - -struct Simple : TensorGroup, Equatable { - var w, b: Tensor -} - -struct Mixed : TensorGroup, Equatable { - // Mutable. - var float: Tensor - // Immutable. - let int: Tensor -} - -struct Nested : TensorGroup, Equatable { - // Immutable. - let simple: Simple - // Mutable. - var mixed: Mixed -} - -struct Generic : TensorGroup, Equatable { - var t: T - var u: U -} - -// Test derived conformances in disallowed contexts. - -// expected-error @+1 2 {{implementation of 'TensorGroup' cannot be automatically synthesized in an extension in a different file to the type}} -extension OtherFileNonconforming : TensorGroup {} - -// expected-error @+1 2 {{implementation of 'TensorGroup' cannot be automatically synthesized in an extension in a different file to the type}} -extension GenericOtherFileNonconforming : TensorGroup {}