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
"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git]
/
mcs
/
tests
/
gtest-537.cs
blob
688ac129be2207daee68ad076740a8c2eda8e494
1
using
System
;
2
3
public class
Test
4
{
5
public static int
Main
()
6
{
7
S a
=
new
S
();
8
S
?
b
=
null
;
9
var
res
=
a
|
b
;
10
if
(
res
!=
"op"
)
11
return
1
;
12
13
var
res2
=
a
+
b
;
14
if
(
res2
!=
9
)
15
return
2
;
16
17
return
0
;
18
}
19
}
20
21
struct
S
22
{
23
public static string operator
| (
S p1
,
S
?
p2
)
24
{
25
return
"op"
;
26
}
27
28
public static int
?
operator
+ (
S p1
,
S
?
p2
)
29
{
30
return
9
;
31
}
32
}