diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-10 20:53:49 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-10 23:10:21 -0700 |
| commit | 7b4190d4e93dca3bb4a593491f1df5e2512156f8 (patch) | |
| tree | 8a2fbb79c63ffe038a61fd3aed717587d3591a11 | |
| parent | e958cbe7991de02dc4bbd99c8d8ab864961eda03 (diff) | |
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
| -rw-r--r-- | src/test/run-pass/issue-2735.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-2735.rs b/src/test/run-pass/issue-2735.rs new file mode 100644 index 00000000000..d896473d20f --- /dev/null +++ b/src/test/run-pass/issue-2735.rs @@ -0,0 +1,14 @@ +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() { + perform_hax(@42); +} |
