2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / test-175.cs
blob2a2ea42ad10efe715d01f59ecc3f79ab545d9d8a
1 using System;
3 struct RVA {
4 public uint value;
6 public RVA (uint val)
8 value = val;
11 public static implicit operator RVA (uint val)
13 return new RVA (val);
16 public static implicit operator uint (RVA rva)
18 return rva.value;
22 class X
24 static int Main ()
26 RVA a = 10;
27 RVA b = 20;
29 if (a > b)
30 return 1;
32 if (a + b != 30)
33 return 2;
35 return 0;