2010-03-26 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / test-type-ctor.cs
blob23d6a67cc8fcf3d4125eb09780f5bdd48e25393b
1 using System;
3 class Subclient {
5 static Subclient () {
6 throw new Exception ();
8 ~Subclient () {
9 Console.WriteLine ("in finalizer");
13 class Test {
14 static Subclient s;
15 static void Main () {
16 Console.WriteLine ("testing");
17 try {
18 s = new Subclient ();
19 } catch {
20 Console.WriteLine ("got it");
22 Console.WriteLine ("done");