aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-22 12:24:55 -0700
committerGraydon Hoare <[email protected]>2010-07-22 12:24:55 -0700
commiteaa35611dc2c66d73032ece1ddde7881fcaccdee (patch)
treecbc01266700dafadc468bc4947b7053d3014f881 /src/test
parentFix mem op= mem bug in trans.ml (via not terribly good fix). Closes #111. (diff)
downloadrust-eaa35611dc2c66d73032ece1ddde7881fcaccdee.tar.xz
rust-eaa35611dc2c66d73032ece1ddde7881fcaccdee.zip
Add XFAIL'ed test for return-in-iter, call unimpl when we find it. Closes #100.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/iter-ret.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/run-pass/iter-ret.rs b/src/test/run-pass/iter-ret.rs
new file mode 100644
index 00000000..12eb9b4e
--- /dev/null
+++ b/src/test/run-pass/iter-ret.rs
@@ -0,0 +1,13 @@
+iter x() -> int {
+}
+
+fn f() -> bool {
+ for each (int i in x()) {
+ ret true;
+ }
+ ret false;
+}
+
+fn main(vec[str] args) -> () {
+ f();
+}