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-503.cs
blob
56dca2049a84b07b865000eaf5ccf7f115f6022f
1
using
System
;
2
3
public class
TestAttribute
:
Attribute
4
{
5
public
TestAttribute
(
Type type
)
6
{
7
}
8
}
9
10
class
C
<
T
>
11
{
12
[
Test
(
typeof
(
N
<>))]
13
public class
N
<
U
>
14
{
15
}
16
}
17
18
class
A
19
{
20
public static int
Main
()
21
{
22
if
(
typeof
(
C
<>.
N
<>).
GetCustomAttributes
(
true
).
Length
!=
1
)
23
return
1
;
24
25
return
0
;
26
}
27
}