Added typeof(void) test.
[mono.git] / mcs / tests / test-anon-70.cs
1 // Cloning tests
2
3 using System;
4
5 public class C
6 {
7         delegate void D ();
8         
9         static void Test (D d)
10         {
11         }
12         
13         public static void Main ()
14         {
15                 Exception diffException;
16                 
17                 Test (delegate () {
18                         diffException = null;
19                                         try {
20                                         } catch (Exception ex) {
21                                                 diffException = ex;
22                                         } finally {
23                                         }
24                                         
25                                         try {
26                                         } catch {
27                                         }
28                                 });
29                                 
30                 int[] i_a = new int [] { 1,2,3 };
31                 
32                 Test (delegate () {
33                                 foreach (int t in i_a) {
34                                 }
35                         });
36                         
37                 Test (delegate () {
38                         Console.WriteLine (typeof (void));
39                 });
40
41         }
42 }