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
2004-03-01 Larry Ewing <lewing@ximian.com>
[mono-project.git]
/
mcs
/
tests
/
test-175.cs
blob
2a2ea42ad10efe715d01f59ecc3f79ab545d9d8a
1
using
System
;
2
3
struct
RVA
{
4
public uint value
;
5
6
public
RVA
(
uint
val
)
7
{
8
value
=
val
;
9
}
10
11
public static implicit operator
RVA
(
uint
val
)
12
{
13
return new
RVA
(
val
);
14
}
15
16
public static implicit operator uint
(
RVA rva
)
17
{
18
return
rva
.
value
;
19
}
20
}
21
22
class
X
23
{
24
static int
Main
()
25
{
26
RVA a
=
10
;
27
RVA b
=
20
;
28
29
if
(
a
>
b
)
30
return
1
;
31
32
if
(
a
+
b
!=
30
)
33
return
2
;
34
35
return
0
;
36
}
37
}