Skip to content

Commit 904418f

Browse files
committed
[Test] Remove accidentally commited broken test code
1 parent a0e48a3 commit 904418f

File tree

2 files changed

+1
-82
lines changed

2 files changed

+1
-82
lines changed

test/Interpreter/Inputs/layout_string_witnesses_types.swift

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -223,47 +223,6 @@ public struct Recursive<T> {
223223
}
224224
}
225225

226-
public protocol Foo: AnyObject {}
227-
228-
public enum Repro {
229-
public struct R1 {
230-
let x: R2?
231-
let y: Int
232-
weak var z: Foo?
233-
let w: [NSNotification.Name]
234-
235-
public init(x: R2?,
236-
y: Int,
237-
z: Foo?,
238-
w: [NSNotification.Name]) {
239-
self.x = x
240-
self.y = y
241-
self.z = z
242-
self.w = w
243-
}
244-
}
245-
246-
public struct R2 {
247-
let x: NSNotification.Name?
248-
let y: Bool
249-
let z: E1
250-
251-
public init(x: NSNotification.Name?,
252-
y: Bool,
253-
z: E1) {
254-
self.x = x
255-
self.y = y
256-
self.z = z
257-
}
258-
}
259-
260-
public enum E1: Int {
261-
case x
262-
case y
263-
case z
264-
}
265-
}
266-
267226
public protocol A {}
268227
public protocol B {}
269228
public protocol C {}

test/Interpreter/layout_string_witnesses_dynamic.swift

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -24,46 +24,6 @@ class TestClass {
2424
}
2525
}
2626

27-
class XX: Foo {
28-
deinit {
29-
print("XX deinitialized!")
30-
}
31-
}
32-
33-
func testRepro() {
34-
let ptr = allocateInternalGenericPtr(of: Repro.R1.self)
35-
36-
var xx: XX? = XX()
37-
38-
do {
39-
let x = Repro.R1(x: Repro.R2(x: .NSThreadWillExit, y: true, z: .x), y: 43, z: xx!, w: [])
40-
testGenericInit(ptr, to: x)
41-
}
42-
43-
var yy: XX? = XX()
44-
45-
do {
46-
let y = Repro.R1(x: Repro.R2(x: .NSThreadWillExit, y: true, z: .x), y: 43, z: yy!, w: [])
47-
// CHECK: Before deinit
48-
print("Before deinit")
49-
50-
// CHECK-NEXT: XX deinitialized!
51-
testGenericAssign(ptr, from: y)
52-
xx = nil
53-
}
54-
55-
// CHECK-NEXT: Before deinit
56-
print("Before deinit")
57-
58-
// CHECK-NEXT: XX deinitialized!
59-
testGenericDestroy(ptr, of: Repro.R1.self)
60-
yy = nil
61-
62-
ptr.deallocate()
63-
}
64-
65-
testRepro()
66-
6727
func testGeneric() {
6828
let ptr = allocateInternalGenericPtr(of: TestClass.self)
6929

@@ -894,7 +854,7 @@ func testResilientSinglePayloadEnumComplexTag() {
894854
testResilientSinglePayloadEnumComplexTag()
895855

896856
func testResilientMultiPayloadEnumTag() {
897-
let x = switch getResilientMultiPayloadEnumEmpty0(AnyObject.self) {
857+
let x = switch getResilientMultiPayloadEnumEmpty0() {
898858
case .nonEmpty0: 0
899859
case .nonEmpty1: 1
900860
case .empty0: 2

0 commit comments

Comments
 (0)