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
[netcore] Disable a flaky test on interpreter (#18904)
[mono-project.git]
/
mono
/
tests
/
generic-unmanaged-constraint.cs
blob
0718ec0c89800222184ca2aa7c9cf5a8fd2506c6
1
using
System
;
2
3
unsafe class
Program
4
{
5
public static int
Main
(
string
[]
args
)
6
{
7
return
(
int
)(
IntPtr
)
Generic
<
int
>.
GetPtr
();
8
}
9
}
10
11
unsafe class
Generic
<
T
>
where T
:
unmanaged
12
{
13
public static
T
*
GetPtr
()
14
{
15
return
(
T
*)
null
;
16
}
17
}