aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
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