Merge pull request #1624 from esdrubal/getprocesstimes
[mono.git] / mcs / tests / test-616.cs
1 // Compiler options: -nostdlib -t:library -noconfig
2
3 //
4 // Tests compiler mscorlib bootstrap
5 //
6
7 namespace System
8 {
9         public class Object
10         {
11                 object value_with_no_base;
12         }
13                 
14         public struct Byte {}
15         public struct Int16 {}
16         public struct Int32 {}
17         public struct Int64 {}
18         public struct Single {}
19         public struct Double{}
20         public struct Char {}
21         public struct Boolean {}
22         public struct SByte {}
23         public struct UInt16 {}
24         public struct UInt32 {}
25         public struct UInt64 {}
26         public struct IntPtr {}
27         public struct UIntPtr {}
28         public class String { }
29         public class Delegate {}
30         public class MulticastDelegate {}
31         public class Array {}
32         public class Exception {}
33         public partial class Type {}
34         public class ValueType {}
35         public class Enum {}
36         public class Attribute {}
37         public struct Void {}
38         public class ParamArrayAttribute {}
39         public class DefaultMemberAttribute {}
40         public struct RuntimeTypeHandle {}
41         public struct RuntimeFieldHandle {}
42                 
43         public interface IDisposable {}
44
45         public struct Decimal {
46
47                 private int flags;
48
49                 public Decimal(int[] bits) {
50                         flags = 0;
51                         SetBits(bits);
52                 }
53
54                 public Decimal (int i)
55                 {
56                         flags = 0;
57                 }
58
59                 private void SetBits(int[] bits) {
60                 }
61         }
62
63         partial class Type
64         {
65                 public static bool operator == (Type left, Type right)
66                 {
67                         return false;
68                 }
69
70                 public static bool operator != (Type left, Type right)
71                 {
72                         return true;
73                 }
74
75                 void Foo ()
76                 {
77                         Decimal d = 0;
78                         var d2 = d;
79                 }
80         }       
81 }
82         
83 namespace System.Runtime.InteropServices
84 {
85         public class OutAttribute {}
86 }
87                 
88
89 namespace System.Collections
90 {
91         public interface IEnumerable {}
92         public interface IEnumerator {}
93 }
94
95 namespace System.Reflection
96 {
97         public class DefaultMemberAttribute {}
98 }