[2019-12] [threads] Add back mono_threads_attach_tools_thread as a public API (#18074)
[mono-project.git] / mono / tests / bug-324535.cs
blobccf605a99b8f68eedccd3a479714fa77d4468f30
1 using System;
3 class Test
5 static int Main ()
7 bool exc = false;
8 try {
9 Generator.fieldOverflow();
10 } catch (ArgumentException e) {
11 exc = true;
12 //Console.WriteLine(e.ToString());
14 if (!exc) return 1;
16 exc = false;
17 try {
18 Generator.referenceArray();
19 } catch (ArgumentException e) {
20 exc = true;
21 //Console.WriteLine(e.ToString());
23 if (!exc) return 1;
25 exc = false;
26 try {
27 Generator.nonRVAField();
28 } catch (ArgumentException e) {
29 exc = true;
30 //Console.WriteLine(e.ToString());
32 if (!exc) return 1;
34 return 0;