Add test case for issue #2734 (xfailed)

This commit is contained in:
Ben Blum 2012-06-28 19:26:12 -04:00
parent 6fc730baf6
commit b2b498183a

View File

@ -0,0 +1,15 @@
// xfail-test
iface hax { }
impl <A> of hax for A { }
fn perform_hax<T>(x: @T) -> hax {
x as hax
}
fn deadcode() {
perform_hax(@"deadcode");
}
fn main() {
let _ = perform_hax(@42);
}