Fix LLVM linker flags for 6.0.
[mono-project.git] / mcs / tests / dtest-014.cs
blobf9a5cf867abe1417d21a3da5d0adb5a3558d52ef
1 class A
3 public static int operator != (A a, dynamic b)
5 return -1;
8 public static int operator == (A a, dynamic b)
10 return +1;
14 public class C
16 public static bool operator == (C a, object b)
18 return ReferenceEquals (a, b);
21 public static bool operator != (C a, dynamic b)
23 return !ReferenceEquals (a, b);
26 public static decimal operator -(dynamic p1, C p2)
28 return 9;
31 public static int Main ()
33 var c = new C ();
34 var v = 1 - c;
36 if (v != 9)
37 return 1;
39 return 0;