Skip to content

Commit 15396fa

Browse files
committed
Add simple test for BB.rauw(BB).
1 parent 55836a3 commit 15396fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/all/test_basic_block.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ fn test_rauw() {
178178
builder.position_at_end(entry);
179179
let branch_inst = builder.build_unconditional_branch(bb1);
180180

181+
bb1.replace_all_uses_with(&bb1); // no-op
181182
bb1.replace_all_uses_with(&bb2);
182183

183184
assert_eq!(branch_inst.get_operand(0).unwrap().right().unwrap(), bb2);

0 commit comments

Comments
 (0)