Add Mono.Runtime::GetNativeStackTrace method to make the new backtracing facility...
[mono-project.git] / mcs / tests / test-cls-00.cs
blob86e2a5616fd612abf612c5eb0dc5f9313c33ea67
1 // Compiler options: -warnaserror
3 using System;
4 using System.Reflection;
5 using System.ComponentModel;
7 [assembly: CLSCompliant(true)]
8 [assembly: AssemblyTitle("")]
10 public class CLSCLass_6 {
11 private object disposedEvent = new object ();
12 public EventHandlerList event_handlers;
14 public event Delegate Disposed {
15 add { event_handlers.AddHandler (disposedEvent, value); }
16 remove { event_handlers.RemoveHandler (disposedEvent, value); }
20 public delegate CLSDelegate Delegate ();
22 [Serializable]
23 public class CLSDelegate {
26 #pragma warning disable 3019
27 internal class CLSClass_5 {
28 [CLSCompliant (true)]
29 public uint Test () {
30 return 1;
33 #pragma warning restore 3019
35 [CLSCompliant (true)]
36 public class CLSClass_4 {
37 [CLSCompliant (false)]
38 public uint Test () {
39 return 1;
43 public class CLSClass_3 {
44 [CLSCompliant (false)]
45 public uint Test_3 () {
46 return 6;
50 [CLSCompliant(false)]
51 public class CLSClass_2 {
52 public sbyte XX {
53 get { return -1; }
57 class CLSClass_1 {
58 public UInt32 Valid() {
59 return 5;
63 [CLSCompliant(true)]
64 public class CLSClass {
66 private class C1 {
67 #pragma warning disable 3019
68 [CLSCompliant(true)]
69 public class C11 {
70 protected ulong Foo3() {
71 return 1;
74 #pragma warning restore 3019
75 protected long Foo2() {
76 return 1;
80 [CLSCompliant(false)]
81 protected internal class CLSClass_2 {
82 public sbyte XX {
83 get { return -1; }
87 #pragma warning disable 3019, 169
88 [CLSCompliant(true)]
89 private ulong Valid() {
90 return 1;
92 #pragma warning restore 3019, 169
94 [CLSCompliant(true)]
95 public byte XX {
96 get { return 5; }
99 // protected internal sbyte FooProtectedInternal() {
100 // return -4;
101 // }
103 internal UInt32 FooInternal() {
104 return 1;
107 #pragma warning disable 169
108 private ulong Foo() {
109 return 1;
111 #pragma warning restore 169
114 public static void Main() {}