Skip to content

Commit 5f29988

Browse files
committed
Add failing test for tag-leaking case.
1 parent 36b81ab commit 5f29988

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ TEST_XFAILS_BOOT := $(TASK_XFAILS) \
414414
test/run-pass/generic-fn-box.rs \
415415
test/run-pass/generic-tup.rs \
416416
test/run-pass/iter-ret.rs \
417+
test/run-pass/leak-tag-copy.rs \
417418
test/run-pass/lib-io.rs \
418419
test/run-pass/mlist-cycle.rs \
419420
test/run-pass/obj-as.rs \

src/test/run-pass/leak-tag-copy.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
tag t {
2+
a;
3+
b(@int);
4+
}
5+
6+
fn main() {
7+
auto x = b(@10);
8+
x = a;
9+
}

0 commit comments

Comments
 (0)