projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5636 from BrzVlad/fix-xmm-scan
[mono.git]
/
mcs
/
tests
/
test-decl-expr-01.cs
1
using System;
2
3
class DeclarationExpression
4
{
5
public static int Main ()
6
{
7
Out (out int o);
8
if (o != 3)
9
return 1;
10
11
if (Out (out int o1)) {
12
if (o1 != 3)
13
return 2;
14
}
15
16
Out (out var o3);
17
if (o3 != 3)
18
return 4;
19
20
Out2 (str: "b", v: out var o5);
21
if (o5 != 9)
22
return 7;
23
24
Console.WriteLine ("ok");
25
return 0;
26
}
27
28
static bool Out (out int value)
29
{
30
value = 3;
31
return true;
32
}
33
34
static bool Out2 (out int v, string str)
35
{
36
v = 9;
37
return true;
38
}
39
}