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
[mono/tests] Fix out of tree build.
[mono-project.git]
/
mcs
/
tests
/
gtest-415.cs
blob
4cfcd92e98f5ee9e5c2ace03ed718c5c1a68ab79
1
using
System
;
2
3
class
Foo
4
{
5
public static int
Main
()
6
{
7
if
(
Bar
(
1
))
8
return
1
;
9
10
if
(!
Bar
(
IntPtr
.
Zero
))
11
return
2
;
12
13
return
0
;
14
}
15
16
static bool
Bar
<
T
> (
T val
)
where T
:
struct
17
{
18
return
val
is
IntPtr
;
19
}
20
}