[Swift-commit] r3005 - trunk/tests/language-behaviour

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Jul 13 02:26:20 CDT 2009


Author: benc
Date: 2009-07-13 02:26:19 -0500 (Mon, 13 Jul 2009)
New Revision: 3005

Added:
   trunk/tests/language-behaviour/07554-ext-mapper-struct.a.out
   trunk/tests/language-behaviour/07554-ext-mapper-struct.b.out
   trunk/tests/language-behaviour/07554-ext-mapper-struct.sh
   trunk/tests/language-behaviour/07554-ext-mapper-struct.swift
Log:
test for ext mapper with structs

Added: trunk/tests/language-behaviour/07554-ext-mapper-struct.a.out
===================================================================
--- trunk/tests/language-behaviour/07554-ext-mapper-struct.a.out	                        (rev 0)
+++ trunk/tests/language-behaviour/07554-ext-mapper-struct.a.out	2009-07-13 07:26:19 UTC (rev 3005)
@@ -0,0 +1 @@
+1st

Added: trunk/tests/language-behaviour/07554-ext-mapper-struct.b.out
===================================================================
--- trunk/tests/language-behaviour/07554-ext-mapper-struct.b.out	                        (rev 0)
+++ trunk/tests/language-behaviour/07554-ext-mapper-struct.b.out	2009-07-13 07:26:19 UTC (rev 3005)
@@ -0,0 +1 @@
+2nd

Added: trunk/tests/language-behaviour/07554-ext-mapper-struct.sh
===================================================================
--- trunk/tests/language-behaviour/07554-ext-mapper-struct.sh	                        (rev 0)
+++ trunk/tests/language-behaviour/07554-ext-mapper-struct.sh	2009-07-13 07:26:19 UTC (rev 3005)
@@ -0,0 +1,3 @@
+#!/bin/bash
+echo "eerste 07554-ext-mapper-struct.a.out"
+echo "twede 07554-ext-mapper-struct.b.out"


Property changes on: trunk/tests/language-behaviour/07554-ext-mapper-struct.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/language-behaviour/07554-ext-mapper-struct.swift
===================================================================
--- trunk/tests/language-behaviour/07554-ext-mapper-struct.swift	                        (rev 0)
+++ trunk/tests/language-behaviour/07554-ext-mapper-struct.swift	2009-07-13 07:26:19 UTC (rev 3005)
@@ -0,0 +1,18 @@
+type messagefile;
+
+type struct {
+messagefile eerste;
+messagefile twede;
+};
+
+(messagefile t) write(string s) { 
+    app {
+        echo s stdout=@filename(t);
+    }
+}
+
+struct outfiles <ext; exec="./07554-ext-mapper-struct.sh">;
+
+outfiles.eerste = write("1st");
+outfiles.twede = write("2nd");
+




More information about the Swift-commit mailing list