Merge pull request #5428 from kumpera/wasm-support-p2
[mono.git] / mono / tests / bug-324535.cs
1 using System;
2
3 class Test
4 {
5     static int Main ()
6     {
7         bool exc = false;
8         try {
9             Generator.fieldOverflow();
10         } catch (ArgumentException e) {
11             exc = true;
12             //Console.WriteLine(e.ToString());
13         }
14         if (!exc) return 1;
15
16         exc = false;
17         try {
18             Generator.referenceArray();
19         } catch (ArgumentException e) {
20             exc = true;
21             //Console.WriteLine(e.ToString());
22         }
23         if (!exc) return 1;
24
25         exc = false;
26         try {
27             Generator.nonRVAField();
28         } catch (ArgumentException e) {
29             exc = true;
30             //Console.WriteLine(e.ToString());
31         }
32         if (!exc) return 1;
33
34         return 0;
35     }
36 }