Merge pull request #5714 from alexischr/update_bockbuild
[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         public 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 }