[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / gtest-640.cs
blob2aeebb4e54ee53fe0f67ad29a97681d27cdd59ad
1 using System;
3 public struct Test
5 public static Test op_Addition<T>(Test p1, T p2)
7 throw new ApplicationException ();
10 public static int op_Addition<T>(T p1, int p2)
12 throw new ApplicationException ();
15 public static Test operator +(Test p1, Test p2)
17 throw new ApplicationException ();
20 public static long operator +(Test p1, int p2)
22 return 4;
26 public class Program
28 public static int Main ()
30 var t = new Test ();
32 int p2 = 20;
33 var res = t + p2;
34 if (res != 4)
35 return 1;
37 return 0;