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
[genproj] Sort embedded resources by name
[mono-project.git]
/
mcs
/
tests
/
test-decl-expr-01.cs
blob
880d3344585a87c342b090cb2fef7e07f4497fd4
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
}