[Swift-commit] r4289 - branches/release-0.92/tests/providers/local-sge-coasters
skenny at ci.uchicago.edu
skenny at ci.uchicago.edu
Wed Apr 6 11:50:58 CDT 2011
Author: skenny
Date: 2011-04-06 11:50:57 -0500 (Wed, 06 Apr 2011)
New Revision: 4289
Added:
branches/release-0.92/tests/providers/local-sge-coasters/002-duplicate-submission-local-sge-coasters.swift
Log:
tests duplicate submission bug for indexing in foreach loop, 092 release
Added: branches/release-0.92/tests/providers/local-sge-coasters/002-duplicate-submission-local-sge-coasters.swift
===================================================================
--- branches/release-0.92/tests/providers/local-sge-coasters/002-duplicate-submission-local-sge-coasters.swift (rev 0)
+++ branches/release-0.92/tests/providers/local-sge-coasters/002-duplicate-submission-local-sge-coasters.swift 2011-04-06 16:50:57 UTC (rev 4289)
@@ -0,0 +1,24 @@
+type file;
+int arr[];
+
+type messagefile;
+
+app (messagefile t) greeting() {
+ echo "Hello, world!" stdout=@filename(t);
+}
+
+foreach a,i in [0:2] {
+ arr[i] = i;
+}
+
+string s[] = [ "0out.txt", "1out.txt", "2out.txt" ];
+
+messagefile f[] <array_mapper;files=s>;
+
+trace("arr",arr);
+
+foreach a,i in arr {
+f[a]=greeting();
+trace(@filename(f[a]));
+ trace("for", a,i);
+}
More information about the Swift-commit
mailing list