projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2497 from ludovic-henry/monoerror-mono_gsharedvt_constrained_call
[mono.git]
/
mcs
/
tests
/
gtest-415.cs
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
}