Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

38 lines
396 B
C#

using System;
struct RVA {
public uint value;
public RVA (uint val)
{
value = val;
}
public static implicit operator RVA (uint val)
{
return new RVA (val);
}
public static implicit operator uint (RVA rva)
{
return rva.value;
}
}
class X
{
public static int Main ()
{
RVA a = 10;
RVA b = 20;
if (a > b)
return 1;
if (a + b != 30)
return 2;
return 0;
}
}