codeowners update
[mono.git] / mcs / tests / gtest-386.cs
1 using System;
2 using System.Linq.Expressions;
3
4 public struct MyType
5 {
6         int value;
7
8         public MyType (int value)
9         {
10                 this.value = value;
11         }
12         public static MyType operator - (MyType a)
13         {
14                 return new MyType (-a.value);
15         }
16 }
17
18 class C
19 {
20         public static int Main ()
21         {
22                 MyType? x = null;
23                 MyType? y = -x;
24                 
25                 checked {
26                         float? f = float.MinValue;
27                         f = -f + 1;
28                         int? i = int.MinValue;
29                         try {
30                                 i = -i;
31                                 return 1;
32                         } catch (OverflowException) { }
33                 }               
34                 
35                 return 0;
36         }
37 }