[2019-12] [threads] Add back mono_threads_attach_tools_thread as a public API (#18074)
[mono-project.git] / mono / tests / bug-78311.cs
blobf590b10edf52f89a3fe5c42e65e5ea47f9b69606
1 using System;
2 using System.Threading;
4 public class Test {
5 public static int Main() {
6 int test = 1;
7 int result = Interlocked.Increment(ref test);
9 if (result != 2) {
10 Console.WriteLine("Incorrect Increment result: " + result);
11 return 1;
12 } else {
13 return 0;