Skip to content

Commit 7b4190d

Browse files
committed
Test for issue 2735
This probably doesn't test the actual bug, but the fix for issue 2734 probably camouflages the actual bug (since the effect of the #2734 test case is now "do nothing observable" rather than "segfault"). Closes #2735
1 parent e958cbe commit 7b4190d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/run-pass/issue-2735.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
iface hax { }
2+
impl <A> of hax for A { }
3+
4+
fn perform_hax<T>(x: @T) -> hax {
5+
x as hax
6+
}
7+
8+
fn deadcode() {
9+
perform_hax(@"deadcode");
10+
}
11+
12+
fn main() {
13+
perform_hax(@42);
14+
}

0 commit comments

Comments
 (0)