Skip to content

Commit 2bf714f

Browse files
authored
Merge pull request #8842 from nate-chandler/cherrypick/swift/release/6.0/rdar113142446
6.0: [Test] lldb: Updated consume operator breakpoints.
2 parents 303596b + 5298ce0 commit 2bf714f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

lldb/test/API/lang/swift/variables/consume_operator/main.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public func copyableValueTest() {
3434
print("stop here") // Set breakpoint
3535
let k = Klass()
3636
k.doSomething()
37-
let m = consume k // Set breakpoint
37+
print("stop here") // Set breakpoint
38+
let m = consume k
3839
m.doSomething() // Set breakpoint
3940
}
4041

@@ -76,7 +77,8 @@ public func addressOnlyVarTest<T : P>(_ x: T) {
7677
public func copyableValueArgTest(_ k: __owned Klass) {
7778
print("stop here") // Set breakpoint
7879
k.doSomething()
79-
let m = consume k // Set breakpoint
80+
print("stop here") // Set breakpoint
81+
let m = consume k
8082
m.doSomething() // Set breakpoint
8183
}
8284

@@ -116,7 +118,8 @@ public func copyableValueCCFTrueTest() {
116118
let k = Klass() // Set breakpoint
117119
k.doSomething() // Set breakpoint
118120
if trueBoolValue {
119-
let m = consume k // Set breakpoint
121+
print("stop here") // Set breakpoint
122+
let m = consume k
120123
m.doSomething() // Set breakpoint
121124
}
122125
// Set breakpoint
@@ -126,6 +129,7 @@ public func copyableValueCCFFalseTest() {
126129
let k = Klass() // Set breakpoint
127130
k.doSomething() // Set breakpoint
128131
if falseBoolValue {
132+
print("stop here") // Set breakpoint
129133
let m = consume k
130134
m.doSomething()
131135
}

lldb/test/API/lang/swift/variables/consume_operator_async/main.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public func copyableValueTest() async {
2525
let k = Klass()
2626
k.doSomething()
2727
await forceSplit() // Set breakpoint 01
28-
let m = consume k // Set breakpoint 02
28+
print("stop here") // Set breakpoint 02
29+
let m = consume k
2930
m.doSomething() // Set breakpoint 03
3031
await forceSplit()
3132
m.doSomething() // Set breakpoint 04

0 commit comments

Comments
 (0)