[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / tests / test-iter-16.cs
blobd9be1a74d7157dcbca1420ec78a15f1edf784404
1 using System.Collections;
2 class Foo {
3 static public IEnumerable foo ()
5 try { yield break; } catch { } finally { }
7 public static int Main ()
9 int i = 0;
10 foreach (object o in foo ())
11 ++i;
12 return i;