Switch to compiler-tester
[mono.git] /
1 using System;
2 using System.Reflection;
3 using System.ComponentModel;
4
5 [assembly: CLSCompliant(true)]
6 [assembly: AssemblyTitle("")]
7
8 public class CLSCLass_6 {
9     private object disposedEvent = new object ();
10     public EventHandlerList event_handlers;    
11         
12     public event Delegate Disposed {
13         add { event_handlers.AddHandler (disposedEvent, value); }
14         remove { event_handlers.RemoveHandler (disposedEvent, value); }
15     }
16 }
17
18 public delegate CLSDelegate Delegate ();
19     
20 [Serializable]
21 public class CLSDelegate {
22 }
23
24 internal class CLSClass_5 {
25         [CLSCompliant (true)]
26         public uint Test () {
27                 return 1;
28         }
29 }
30
31 [CLSCompliant (true)]
32 public class CLSClass_4 {
33         [CLSCompliant (false)]
34         public uint Test () {
35                 return 1;
36         }
37 }
38
39 public class CLSClass_3 {
40         [CLSCompliant (false)]
41         public uint Test_3 () {
42                 return 6;
43         }
44 }
45
46 [CLSCompliant(false)]
47 public class CLSClass_2 {
48         public sbyte XX {
49             get { return -1; }
50         }
51 }
52
53 class CLSClass_1 {
54         public UInt32 Valid() {
55                 return 5;
56         }
57 }
58     
59 [CLSCompliant(true)]
60 public class CLSClass {
61     
62         private class C1 {
63             
64             [CLSCompliant(true)]
65             public class C11 {
66                 protected ulong Foo3() {
67                     return 1;
68                 }
69             }
70
71             protected long Foo2() {
72                 return 1;
73             }
74         }
75
76         [CLSCompliant(false)]
77         protected internal class CLSClass_2 {
78                 public sbyte XX {
79                     get { return -1; }
80                 }
81         }
82
83         
84         [CLSCompliant(true)]
85         private ulong Valid() {
86                 return 1;
87         }
88         
89         [CLSCompliant(true)]
90         public byte XX {
91             get { return 5; }
92         }
93
94 //        protected internal sbyte FooProtectedInternal() {
95 //                return -4;
96 //       }
97         
98         internal UInt32 FooInternal() {
99                 return 1;
100         }        
101     
102         private ulong Foo() {
103                 return 1;
104         }
105
106         
107         public static void Main() {}
108 }