Add failing test for tag-leaking case.
This commit is contained in:
parent
36b81abf61
commit
5f29988a2c
2 changed files with 10 additions and 0 deletions
|
|
@ -414,6 +414,7 @@ TEST_XFAILS_BOOT := $(TASK_XFAILS) \
|
|||
test/run-pass/generic-fn-box.rs \
|
||||
test/run-pass/generic-tup.rs \
|
||||
test/run-pass/iter-ret.rs \
|
||||
test/run-pass/leak-tag-copy.rs \
|
||||
test/run-pass/lib-io.rs \
|
||||
test/run-pass/mlist-cycle.rs \
|
||||
test/run-pass/obj-as.rs \
|
||||
|
|
|
|||
9
src/test/run-pass/leak-tag-copy.rs
Normal file
9
src/test/run-pass/leak-tag-copy.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
tag t {
|
||||
a;
|
||||
b(@int);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
auto x = b(@10);
|
||||
x = a;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue