Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-840.cs
1 struct R
2 {
3         public static bool operator < (R left, R right)
4         {
5                 return true;
6         }
7
8         public static bool operator > (R left, R right)
9         {
10                 return false;
11         }
12         
13         public static implicit operator float(R r)
14         {
15                 return 5;
16         }
17         
18         public static implicit operator R(float f)
19         {
20                 return new R ();
21         }
22 }
23
24 class C
25 {
26         public static int Main ()
27         {
28                 var r = new R ();
29                 float f = 999f;
30                 
31                 bool b = f < r;
32                 if (!b)
33                         return 1;
34                 
35                 return 0;
36         }
37 }