[Swift-commit] r6587 - branches/release-0.94/tests/language-behaviour/IO

yadunandb at ci.uchicago.edu yadunandb at ci.uchicago.edu
Tue Jun 18 13:35:40 CDT 2013


Author: yadunandb
Date: 2013-06-18 13:35:39 -0500 (Tue, 18 Jun 2013)
New Revision: 6587

Added:
   branches/release-0.94/tests/language-behaviour/IO/readData3.out.expected
   branches/release-0.94/tests/language-behaviour/IO/readData3.swift
   branches/release-0.94/tests/language-behaviour/IO/title.txt
Log:

Adding test to confirm Bug: 1028



Added: branches/release-0.94/tests/language-behaviour/IO/readData3.out.expected
===================================================================
--- branches/release-0.94/tests/language-behaviour/IO/readData3.out.expected	                        (rev 0)
+++ branches/release-0.94/tests/language-behaviour/IO/readData3.out.expected	2013-06-18 18:35:39 UTC (rev 6587)
@@ -0,0 +1 @@
+9
\ No newline at end of file

Added: branches/release-0.94/tests/language-behaviour/IO/readData3.swift
===================================================================
--- branches/release-0.94/tests/language-behaviour/IO/readData3.swift	                        (rev 0)
+++ branches/release-0.94/tests/language-behaviour/IO/readData3.swift	2013-06-18 18:35:39 UTC (rev 6587)
@@ -0,0 +1,23 @@
+type file;
+
+/*
+   Test case added to confirm Bug 1028 - readData in a foreach loop fails to compile.
+   https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=1028
+
+   This test is expected to fail to compile till bug is resolved.
+*/
+
+app (file o) mysim (int i)
+{
+  echo i stdout=@filename(o);
+}
+
+int nums[];
+foreach i in [0:9] {
+  file f <single_file_mapper; file=@strcat("output/sim_",i,".out")>;
+  f = mysim(i);
+  nums[i] = readData(f);
+}
+
+file result <"readData3.out">;
+result = mysim(nums[i]);
\ No newline at end of file

Added: branches/release-0.94/tests/language-behaviour/IO/title.txt
===================================================================
--- branches/release-0.94/tests/language-behaviour/IO/title.txt	                        (rev 0)
+++ branches/release-0.94/tests/language-behaviour/IO/title.txt	2013-06-18 18:35:39 UTC (rev 6587)
@@ -0,0 +1 @@
+Language Behavior tests : Subgroup local IO




More information about the Swift-commit mailing list