Merge pull request #268 from pcc/menudeactivate
[mono.git] / mcs / tests / test-iter-16.cs
1 using System.Collections;
2 class Foo {
3         static public IEnumerable foo ()
4         {
5                 try { yield break; } catch { } finally { }
6         }
7         public static int Main ()
8         {
9                 int i = 0;
10                 foreach (object o in foo ())
11                         ++i;
12                 return i;
13         }
14 }