[Swift-commit] r4288 - branches/release-0.92/tests/language/working

skenny at ci.uchicago.edu skenny at ci.uchicago.edu
Tue Apr 5 23:06:01 CDT 2011


Author: skenny
Date: 2011-04-05 23:06:00 -0500 (Tue, 05 Apr 2011)
New Revision: 4288

Added:
   branches/release-0.92/tests/language/working/063-duplicate-submission.swift
Removed:
   branches/release-0.92/tests/language/working/063-duplicate-submission.swift
Log:
fails for 092 release and succeeds for the new patched version 

Deleted: branches/release-0.92/tests/language/working/063-duplicate-submission.swift
===================================================================
--- branches/release-0.92/tests/language/working/063-duplicate-submission.swift	2011-04-06 01:17:49 UTC (rev 4287)
+++ branches/release-0.92/tests/language/working/063-duplicate-submission.swift	2011-04-06 04:06:00 UTC (rev 4288)
@@ -1,11 +0,0 @@
-int arr[];
-
-foreach a,i in [0:9] {
- arr[i] = i;
-}
-
-trace("arr",arr);
-
-foreach a,i in arr {
- trace("for", a,i);
-}

Added: branches/release-0.92/tests/language/working/063-duplicate-submission.swift
===================================================================
--- branches/release-0.92/tests/language/working/063-duplicate-submission.swift	                        (rev 0)
+++ branches/release-0.92/tests/language/working/063-duplicate-submission.swift	2011-04-06 04:06:00 UTC (rev 4288)
@@ -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