projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-02-08 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-175.cs
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
}