From b34cb1b631d7979307bec26905a1a9298ec4f17a Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 19 Aug 2010 18:41:55 -0700 Subject: Fix a bunch of typestate bugs in handling if and while statement wirings. --- src/test/run-pass/while-flow-graph.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/test/run-pass/while-flow-graph.rs (limited to 'src/test') diff --git a/src/test/run-pass/while-flow-graph.rs b/src/test/run-pass/while-flow-graph.rs new file mode 100644 index 00000000..49e7810a --- /dev/null +++ b/src/test/run-pass/while-flow-graph.rs @@ -0,0 +1,4 @@ +fn main() { + let int x = 10; + while (x == 10 && x == 11) { auto y = 0xf00; } +} \ No newline at end of file -- cgit v1.2.3