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
/
test-primary-ctor-08.cs
blob
2d00b61dd61e7c104d77b10deb584a9326759a4e
1
// Compiler options: -langversion:experimental
2
struct
S
(
int
arg
)
3
{
4
{
5
v
=
arg
;
6
}
7
8
public readonly int
v
;
9
}
10
11
class
C
(
int
arg
)
12
{
13
{
14
v
=
arg
;
15
}
16
17
public readonly int
v
;
18
}
19
20
class
Test
21
{
22
public static int
Main
()
23
{
24
if
(
new
C
(
4
).
v
!=
4
)
25
return
1
;
26
27
if
(
new
S
(
3
).
v
!=
3
)
28
return
2
;
29
30
return
0
;
31
}
32
}