repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-02-15 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
gtest-143.cs
blob
6a9f561c2e55327d6643f2592e4cc4ec3434aa50
1
using
System
;
2
3
class
X
4
{
5
static int
Test
()
6
{
7
int
?
a
=
5
;
8
int
?
b
=
a
++;
9
10
if
(
a
!=
6
)
11
return
1
;
12
if
(
b
!=
5
)
13
return
2
;
14
15
int
?
c
= ++
a
;
16
17
if
(
c
!=
7
)
18
return
3
;
19
20
b
++;
21
++
b
;
22
23
if
(
b
!=
7
)
24
return
4
;
25
26
int
?
d
=
b
++ + ++
a
;
27
28
if
(
a
!=
8
)
29
return
5
;
30
if
(
b
!=
8
)
31
return
6
;
32
if
(
d
!=
15
)
33
return
7
;
34
35
return
0
;
36
}
37
38
static int
Main
()
39
{
40
int
result
=
Test
();
41
if
(
result
!=
0
)
42
Console
.
WriteLine
(
"ERROR:
{0}
"
,
result
);
43
return
result
;
44
}
45
}