remove NotWorking
[mcs.git] / tests / test-anon-70.cs
blob2376311430a67850f0652e333238936258707279
1 // Compiler options: -unsafe
3 // Cloning tests
5 using System;
7 unsafe class UnsafeClass
9 public int* GetUnsafeValue ()
11 return null;
15 public class C
17 delegate void D ();
19 static void Test (D d)
23 unsafe static void UnsafeTests ()
25 UnsafeClass v = new UnsafeClass ();
26 Test (delegate () {
27 int i = *v.GetUnsafeValue ();
28 });
32 public static void Main ()
34 Exception diffException;
36 Test (delegate () {
37 diffException = null;
38 try {
39 } catch (Exception ex) {
40 diffException = ex;
41 } finally {
44 try {
45 } catch {
47 });
49 int[] i_a = new int [] { 1,2,3 };
51 Test (delegate () {
52 foreach (int t in i_a) {
54 });
56 Test (delegate () {
57 Console.WriteLine (typeof (void));
58 });