[runtime] Coverage profiler fixes (#5698)
[mono.git] / mcs / tests / gtest-537.cs
1 using System;
2
3 public class Test
4 {
5         public static int Main ()
6         {
7                 S a = new S ();
8                 S? b = null;
9                 var res = a | b;
10                 if (res != "op")
11                         return 1;
12                 
13                 var res2 = a + b;
14                 if (res2 != 9)
15                         return 2;
16
17                 return 0;
18         }
19 }
20
21 struct S
22 {
23         public static string operator | (S p1, S? p2)
24         { 
25                 return "op";
26         }
27         
28         public static int? operator + (S p1, S? p2)
29         { 
30                 return 9;
31         }
32 }