aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-08-19 18:41:55 -0700
committerGraydon Hoare <[email protected]>2010-08-19 18:42:32 -0700
commitb34cb1b631d7979307bec26905a1a9298ec4f17a (patch)
tree0d3f0bf4330e64795297f45227040f6f73980edd /src/test
parentMake _io.buf_reader read more than 0 bytes at a time. (diff)
downloadrust-b34cb1b631d7979307bec26905a1a9298ec4f17a.tar.xz
rust-b34cb1b631d7979307bec26905a1a9298ec4f17a.zip
Fix a bunch of typestate bugs in handling if and while statement wirings.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/while-flow-graph.rs4
1 files changed, 4 insertions, 0 deletions
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