diff options
| author | Patrick Walton <[email protected]> | 2011-05-02 17:44:22 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-05-02 17:50:46 -0700 |
| commit | a833f152baa17460e8414355e832d30d5161f8e8 (patch) | |
| tree | 66509ce43c6404b4c9423278d8f496c44f6462a9 /src/test | |
| parent | Un-revert "Use different syntax for checks that matter to typestate", fixing ... (diff) | |
| download | rust-a833f152baa17460e8414355e832d30d5161f8e8.tar.xz rust-a833f152baa17460e8414355e832d30d5161f8e8.zip | |
rustc: Remove the artificial block in ty.rs. Fixes self-hosting. Add a test case for this, XFAIL'd.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/artificial-block.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/run-pass/artificial-block.rs b/src/test/run-pass/artificial-block.rs new file mode 100644 index 00000000..a47787e0 --- /dev/null +++ b/src/test/run-pass/artificial-block.rs @@ -0,0 +1,12 @@ +// xfail-stage0 +// xfail-stage1 +// xfail-stage2 +fn f() -> int { + { ret 3; } +} + +fn main() { + assert(f() == 3); +} + + |