Author: gert
Date: 2008-01-12 09:26:09 -0500 (Sat, 12 Jan 2008)
New Revision: 92734

Added:
   trunk/gert/standalone/bug352168/
   trunk/gert/standalone/bug352168/default.build
   trunk/gert/standalone/bug352168/test.cs
Log:
Added test for bug #352168.


Added: trunk/gert/standalone/bug352168/default.build
===================================================================
--- trunk/gert/standalone/bug352168/default.build       2008-01-12 14:21:57 UTC 
(rev 92733)
+++ trunk/gert/standalone/bug352168/default.build       2008-01-12 14:26:09 UTC 
(rev 92734)
@@ -0,0 +1,22 @@
+<project name="bug352168" default="rebuild">
+       <include buildfile="../../build/common.build" />
+       
+       <property name="frameworks" value="mono-2.0,mono-3.5,net-2.0,net-3.5" />
+
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="run-test" depends="init">
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="false" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+</project>


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

Added: trunk/gert/standalone/bug352168/test.cs
===================================================================
--- trunk/gert/standalone/bug352168/test.cs     2008-01-12 14:21:57 UTC (rev 
92733)
+++ trunk/gert/standalone/bug352168/test.cs     2008-01-12 14:26:09 UTC (rev 
92734)
@@ -0,0 +1,22 @@
+using System;
+
+class Program
+{
+       static void Main (string [] args)
+       {
+               Do (delegate () {
+                       try {
+                               return false;
+                       } catch (Exception e) {
+                               throw e;
+                       }
+               });
+       }
+       
+       static object Do (DoIt d)
+       {
+               return d ();
+       }
+
+       delegate bool DoIt ();
+}


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

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

Reply via email to