Author: gert
Date: 2007-10-09 11:13:57 -0400 (Tue, 09 Oct 2007)
New Revision: 87171

Added:
   trunk/gert/standalone/bug331958/
   trunk/gert/standalone/bug331958/default.build
   trunk/gert/standalone/bug331958/test.cs
Modified:
   trunk/gert/standalone/known-issues
Log:
Added test for bug #331958.


Added: trunk/gert/standalone/bug331958/default.build
===================================================================
--- trunk/gert/standalone/bug331958/default.build       2007-10-09 15:11:33 UTC 
(rev 87170)
+++ trunk/gert/standalone/bug331958/default.build       2007-10-09 15:13:57 UTC 
(rev 87171)
@@ -0,0 +1,61 @@
+<project name="bug331958" default="rebuild">
+       <target name="mono-1.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+       </target>
+
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-1.1">
+               <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-1.0,mono-2.0,net-1.1,net-2.0" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="run" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <nowarn>
+                               <warning number="0169" />
+                       </nowarn>
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="run" depends="compile">
+               <exec program="test.exe" managed="true" output="out" />
+               <fail if="${file::exists('out')}" />
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/standalone/bug331958/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug331958/test.cs
===================================================================
--- trunk/gert/standalone/bug331958/test.cs     2007-10-09 15:11:33 UTC (rev 
87170)
+++ trunk/gert/standalone/bug331958/test.cs     2007-10-09 15:13:57 UTC (rev 
87171)
@@ -0,0 +1,30 @@
+class Program
+{
+       static int Main ()
+       {
+               X18 x = new X18 ();
+               if (x.GetType () != typeof (X18))
+                       return 1;
+               return 0;
+       }
+}
+
+struct X0 { byte b; }
+struct X1 { X0 x1; X0 x2; }
+struct X2 { X1 x1; X1 x2; }
+struct X3 { X2 x1; X2 x2; }
+struct X4 { X3 x1; X3 x2; }
+struct X5 { X4 x1; X4 x2; }
+struct X6 { X5 x1; X5 x2; }
+struct X7 { X6 x1; X6 x2; }
+struct X8 { X7 x1; X7 x2; }
+struct X9 { X8 x1; X8 x2; }
+struct X10 { X9 x1; X9 x2; }
+struct X11 { X10 x1; X10 x2; }
+struct X12 { X11 x1; X11 x2; }
+struct X13 { X12 x1; X12 x2; }
+struct X14 { X13 x1; X13 x2; }
+struct X15 { X14 x1; X14 x2; }
+struct X16 { X15 x1; X15 x2; }
+struct X17 { X16 x1; X16 x2; }
+struct X18 { X17 x1; X17 x2; }


Property changes on: trunk/gert/standalone/bug331958/test.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues  2007-10-09 15:11:33 UTC (rev 87170)
+++ trunk/gert/standalone/known-issues  2007-10-09 15:13:57 UTC (rev 87171)
@@ -85,3 +85,4 @@
 bug326288/**
 bug327438/**
 bug331126/**
+bug331958/**
\ No newline at end of file

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to