From d1b9ddc8d49744a4e7e478e775d02d071dbd78a4 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 19 Apr 2011 16:52:59 -0700 Subject: Add testcase for bootstrap blocker and fix for each result type to nil. --- src/test/run-pass/alt-phi.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/run-pass/alt-phi.rs (limited to 'src/test') diff --git a/src/test/run-pass/alt-phi.rs b/src/test/run-pass/alt-phi.rs new file mode 100644 index 00000000..607a434a --- /dev/null +++ b/src/test/run-pass/alt-phi.rs @@ -0,0 +1,22 @@ +tag thing { a; b; c; } + +iter foo() -> int { + put 10; +} + +fn main() { + auto x = true; + alt (a) { + case (a) { + x = true; + for each (int i in foo()) { + } + } + case (b) { + x = false; + } + case (c) { + x = false; + } + } +} -- cgit v1.2.3