Author: gert
Date: 2007-09-05 07:11:12 -0400 (Wed, 05 Sep 2007)
New Revision: 85346

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


Added: trunk/gert/standalone/bug82571/default.build
===================================================================
--- trunk/gert/standalone/bug82571/default.build        2007-09-05 10:16:46 UTC 
(rev 85345)
+++ trunk/gert/standalone/bug82571/default.build        2007-09-05 11:11:12 UTC 
(rev 85346)
@@ -0,0 +1,62 @@
+<project name="bug82571" default="rebuild">
+       <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-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-2.0,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" />
+                               <if test="${framework::exists('net-2.0')}">
+                                       <property 
name="nant.settings.currentframework" value="net-2.0" />
+                                       <call target="verify" />
+                                       <call target="run" />
+                               </if>
+                               <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">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="verify">
+               <exec 
program="${framework::get-sdk-directory(framework::get-target-framework())}/peverify.exe"
 managed="true">
+                       <arg value="/NOLOGO" />
+                       <arg file="test.exe" />
+               </exec>
+       </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/bug82571/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug82571/test.cs
===================================================================
--- trunk/gert/standalone/bug82571/test.cs      2007-09-05 10:16:46 UTC (rev 
85345)
+++ trunk/gert/standalone/bug82571/test.cs      2007-09-05 11:11:12 UTC (rev 
85346)
@@ -0,0 +1,12 @@
+using System;
+
+class Program
+{
+       public delegate void Foo ();
+
+       static void Main ()
+       {
+               Foo x = delegate () { };
+               x ();
+       }
+}


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

Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues  2007-09-05 10:16:46 UTC (rev 85345)
+++ trunk/gert/standalone/known-issues  2007-09-05 11:11:12 UTC (rev 85346)
@@ -75,6 +75,7 @@
 bug82465/**
 bug82545/**
 bug82550/**
+bug82571/**
 bug82595/**
 bug82616/**
 bug82666/**

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

Reply via email to