[Swift-commit] r2539 - trunk
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sat Feb 14 07:55:04 CST 2009
Author: benc
Date: 2009-02-14 07:55:03 -0600 (Sat, 14 Feb 2009)
New Revision: 2539
Added:
trunk/161-star-dot.out.expected
trunk/162-dot-on-array.out.expected
trunk/162-dot-on-array.swift
Log:
more tests for r2538
Added: trunk/161-star-dot.out.expected
===================================================================
--- trunk/161-star-dot.out.expected (rev 0)
+++ trunk/161-star-dot.out.expected 2009-02-14 13:55:03 UTC (rev 2539)
@@ -0,0 +1 @@
+two-C
Added: trunk/162-dot-on-array.out.expected
===================================================================
--- trunk/162-dot-on-array.out.expected (rev 0)
+++ trunk/162-dot-on-array.out.expected 2009-02-14 13:55:03 UTC (rev 2539)
@@ -0,0 +1 @@
+two-C
Added: trunk/162-dot-on-array.swift
===================================================================
--- trunk/162-dot-on-array.swift (rev 0)
+++ trunk/162-dot-on-array.swift 2009-02-14 13:55:03 UTC (rev 2539)
@@ -0,0 +1,36 @@
+type messagefile;
+
+(messagefile t) greeting(string s) {
+ app {
+ echo s stdout=@filename(t);
+ }
+}
+
+messagefile outfile <"162-dot-on-array.out">;
+
+type astruct {
+ string a;
+ string b;
+ string c;
+};
+
+astruct foo[];
+
+foo[0].a = "zero-A";
+foo[0].b = "zero-B";
+foo[0].c = "zero-C";
+
+foo[1].a = "one-A";
+foo[1].b = "one-B";
+foo[1].c = "one-C";
+
+foo[2].a = "two-A";
+foo[2].b = "two-B";
+foo[2].c = "two-C";
+
+string s[] = foo.c;
+
+string u = s[2];
+
+outfile = greeting(u);
+
More information about the Swift-commit
mailing list