[Swift-commit] r2071 - trunk/tests/misc
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sun Jun 15 18:23:22 CDT 2008
Author: benc
Date: 2008-06-15 18:23:21 -0500 (Sun, 15 Jun 2008)
New Revision: 2071
Added:
trunk/tests/misc/restart-iterate.swift
Log:
forgot to add this file for test
Added: trunk/tests/misc/restart-iterate.swift
===================================================================
--- trunk/tests/misc/restart-iterate.swift (rev 0)
+++ trunk/tests/misc/restart-iterate.swift 2008-06-15 23:23:21 UTC (rev 2071)
@@ -0,0 +1,40 @@
+type file;
+
+(file t) a(file i) {
+ app {
+ helperA @t @i "IN A";
+ }
+}
+
+(file t) b(file i) {
+ app {
+ helperB @t @i "IN B";
+ }
+}
+
+(file t) c(file i) {
+ app {
+ helperC @t @i "IN C";
+ }
+}
+
+(file r) q(file i, int n) {
+ file t;
+ if(n<5) { t=a(i); } else { t=b(i); }
+ r=c(t);
+}
+
+file J <"restart.in">;
+
+file X[];
+
+file Y[] <simple_mapper;prefix="restart-iterate.",suffix=".out">;
+
+iterate iv {
+ X[iv] = q(J,iv);
+} until(iv>10);
+
+foreach x,j in X {
+ Y[j] = q(x,j);
+}
+
More information about the Swift-commit
mailing list