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
update readme (#21797)
[mono-project.git]
/
mcs
/
tests
/
test-742.cs
blob
8be9f8220c0f6e453b79892bc096ddc794f23dbe
1
using
System
;
2
3
public struct
Test
4
{
5
public int
Foo
;
6
7
public static
Test
Set
(
C c
)
8
{
9
c
.
Value
.
Foo
=
21
;
10
return
c
.
Value
;
11
}
12
}
13
14
public class
C
15
{
16
public
Test Value
;
17
}
18
public class
Driver
19
{
20
public static int
Main
()
21
{
22
var
v
=
Test
.
Set
(
new
C
());
23
Console
.
WriteLine
(
v
.
Foo
);
24
if
(
v
.
Foo
!=
21
)
25
return
1
;
26
return
0
;
27
}
28
}