Author: gert
Date: 2008-02-07 15:09:51 -0500 (Thu, 07 Feb 2008)
New Revision: 95186
Added:
trunk/gert/standalone/bug359516/
trunk/gert/standalone/bug359516/default.build
trunk/gert/standalone/bug359516/test.il
Log:
Added test for bug #359516.
Added: trunk/gert/standalone/bug359516/default.build
===================================================================
--- trunk/gert/standalone/bug359516/default.build 2008-02-07 20:07:15 UTC
(rev 95185)
+++ trunk/gert/standalone/bug359516/default.build 2008-02-07 20:09:51 UTC
(rev 95186)
@@ -0,0 +1,42 @@
+<project name="bug359516" default="rebuild">
+ <include buildfile="../../build/common.build" />
+
+ <target name="mono-1.0-init">
+ <property name="debug.filename" value="test.exe.mdb" />
+ </target>
+
+ <target name="mono-2.0-init">
+ <property name="debug.filename" value="test.exe.mdb" />
+ </target>
+
+ <target name="net-1.1-init">
+ <property name="debug.filename" value="test.pdb" />
+ </target>
+
+ <target name="net-2.0-init">
+ <property name="debug.filename" value="test.pdb" />
+ </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" />
+ <include name="test.exe.mdb" />
+ <include name="test.pdb" />
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="run-test" depends="init">
+ <ilasm target="exe" output="test.exe" debug="true">
+ <sources>
+ <include name="test.il" />
+ </sources>
+ </ilasm>
+ <fail unless="${file::exists('test.exe')}">#1</fail>
+ <fail unless="${file::exists(debug.filename)}">#2</fail>
+ </target>
+</project>
Property changes on: trunk/gert/standalone/bug359516/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug359516/test.il
===================================================================
--- trunk/gert/standalone/bug359516/test.il 2008-02-07 20:07:15 UTC (rev
95185)
+++ trunk/gert/standalone/bug359516/test.il 2008-02-07 20:09:51 UTC (rev
95186)
@@ -0,0 +1,36 @@
+.assembly Test { }
+.assembly extern mscorlib { }
+
+.method public static int32 Main() cil managed
+{
+ .entrypoint
+ .locals init (int32 V_0, int32 V_1)
+ ldc.i4.1
+ stloc.0
+ .try
+ {
+ .try
+ {
+ newobj instance void [mscorlib]System.Exception::.ctor()
+ throw
+ leave.s IL_0015
+ }
+ fault
+ {
+ ldc.i4.0
+ stloc.0
+ endfault
+ leave.s IL_0015
+ }
+ }
+ catch [mscorlib]System.Object
+ {
+ pop
+ leave.s IL_0015
+ }
+ IL_0015: ldloc.0
+ IL_0016: stloc.1
+ IL_0017: br.s IL_0018
+ IL_0018: ldloc.1
+ IL_0019: ret
+}
Property changes on: trunk/gert/standalone/bug359516/test.il
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches