repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[System] Use GZipStream from corefx
[mono-project.git]
/
mono
/
tests
/
bug-78311.cs
blob
f590b10edf52f89a3fe5c42e65e5ea47f9b69606
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
}