Fix DateTime.Now and CurrentTimeToUtc during DST transition time (#4172)
[mono-project.git] / mcs / tests / test-anon-09.cs
blobf3519660b7de651e2ce82e2fb496c3d5c57c4513
1 //
2 // Tests unary mutator operators on captured variables
3 //
4 using System;
6 class X {
7 delegate void D ();
9 static int gt, gj;
11 public static int Main ()
13 int times = 0;
15 D d = delegate {
16 int t = times++;
17 int j = ++times;
19 gt = t;
20 gj = j;
22 d ();
24 if (gt != 0)
25 return 1;
26 if (gj != 2)
27 return 2;
29 return 0;