projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* expression.cs (Invocation.IsApplicable): Reorganize slightly to
[mono.git]
/
mcs
/
tests
/
gtest-143.cs
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
}