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
[metadata] Fix leaks when handling a few attributes (#16675)
[mono-project.git]
/
mcs
/
tests
/
gtest-initialize-03.cs
blob
34b022094fbd1b7f80ba9b8ef87cc7751512b241
1
2
3
using
System
;
4
using
System
.
Collections
;
5
6
class
Data
7
{
8
public int
Value
;
9
}
10
11
public class
Test
12
{
13
static
Data Prop
{
14
set
{
15
}
16
}
17
18
public object
Foo
()
19
{
20
return new
Data
()
{ Value = 3 }
;
21
}
22
23
public static void
Main
()
24
{
25
Prop
=
new
Data
()
{ Value = 3 }
;
26
Data data
=
new
Data
()
{ Value = 6 }
;
27
Data a
,
b
;
28
a
=
b
=
new
Data
()
{ Value = 3 }
;
29
}
30
}