projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mono
/
tests
/
bug-78311.cs
1
using System;
2
using System.Threading;
3
4
public class Test {
5
public static int Main() {
6
int test = 1;
7
int result = Interlocked.Increment(ref test);
8
9
if (result != 2) {
10
Console.WriteLine("Incorrect Increment result: " + result);
11
return 1;
12
} else {
13
return 0;
14
}
15
}
16
}