do not check order sequence if option /order was not used
[mono.git] / mcs / tests / test-anon-52.cs
1 using System;
2 using System.Collections;
3  
4 class X {
5         delegate void A ();
6  
7         static IEnumerator GetIt (int [] args)
8         {
9                 foreach (int arg in args) {
10                         Console.WriteLine ("OUT: {0}", arg);
11                         A a = delegate {
12                                 Console.WriteLine ("arg: {0}", arg);
13                                 return;
14                         };
15                         a ();
16                         yield return arg;
17                 }
18         }
19  
20         static int Main ()
21         {
22                 IEnumerator enumerator = GetIt (new int [] { 1, 2, 3});
23                 enumerator.MoveNext ();
24                 return 0;
25         }
26 }