diff options
| author | Graydon Hoare <[email protected]> | 2010-08-19 18:41:55 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-08-19 18:42:32 -0700 |
| commit | b34cb1b631d7979307bec26905a1a9298ec4f17a (patch) | |
| tree | 0d3f0bf4330e64795297f45227040f6f73980edd /src/test/run-pass/while-flow-graph.rs | |
| parent | Make _io.buf_reader read more than 0 bytes at a time. (diff) | |
| download | rust-b34cb1b631d7979307bec26905a1a9298ec4f17a.tar.xz rust-b34cb1b631d7979307bec26905a1a9298ec4f17a.zip | |
Fix a bunch of typestate bugs in handling if and while statement wirings.
Diffstat (limited to 'src/test/run-pass/while-flow-graph.rs')
| -rw-r--r-- | src/test/run-pass/while-flow-graph.rs | 4 |
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 |