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
Fix LLVM linker flags for 6.0.
[mono-project.git]
/
mcs
/
tests
/
gtest-524.cs
blob
f27c833d80efd11f766c536420bff00841790144
1
// Compiler options: -warnaserror
2
3
// No CS1720 warning
4
5
using
System
;
6
7
class
C
8
{
9
static
T M
<
T
> ()
where T
:
struct
10
{
11
return
((
Nullable
<
T
>)
null
).
GetValueOrDefault
();
12
}
13
14
public static int
Main
()
15
{
16
if
(
M
<
int
> () !=
0
)
17
return
1
;
18
19
return
0
;
20
}
21
}