Merge pull request #5428 from kumpera/wasm-support-p2
[mono.git] / mono / tests / test-type-ctor.cs
1 using System;
2
3 class Subclient {
4
5         static Subclient () {
6                 throw new Exception ();
7         }
8         ~Subclient () {
9                 Console.WriteLine ("in finalizer");
10         }
11 }
12
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");
21                 }
22                 Console.WriteLine ("done");
23         }
24 }
25