Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Test for bug #342507.

svn path=/trunk/mono/; revision=90960
  • Loading branch information...
commit 695796459be8b18de5f51d5504808b4a1eb5a860 1 parent f118897
@illupus illupus authored
Showing with 26 additions and 0 deletions.
  1. +1 −0  mono/tests/Makefile.am
  2. +25 −0 mono/tests/test-type-ctor.cs
View
1  mono/tests/Makefile.am
@@ -240,6 +240,7 @@ TEST_CS_SRC= \
transparentproxy.cs \
imt_big_iface_test.cs \
dbnull-missing.cs \
+ test-type-ctor.cs \
soft-float-tests.cs
if X86
View
25 mono/tests/test-type-ctor.cs
@@ -0,0 +1,25 @@
+using System;
+
+class Subclient {
+
+ static Subclient () {
+ throw new Exception ();
+ }
+ ~Subclient () {
+ Console.WriteLine ("in finalizer");
+ }
+}
+
+class Test {
+ static Subclient s;
+ static void Main () {
+ Console.WriteLine ("testing");
+ try {
+ s = new Subclient ();
+ } catch {
+ Console.WriteLine ("got it");
+ }
+ Console.WriteLine ("done");
+ }
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.