Add support for Windows x64 Full AOT + LLVM + Interpreter on CI. (#15276)
[mono-project.git] / mcs / tests / gtest-iter-22.cs
blobf3e355bd87cdfbafcf177df143758901995f6b77
1 using System;
2 using System.Collections.Generic;
4 class D : IDisposable
6 public void Dispose ()
8 Console.WriteLine ("dispose");
12 class C
14 IEnumerable<int> Test ()
16 try {
17 using (var d = new D ()) {
18 Console.WriteLine (1);
20 } finally {
21 Console.WriteLine (2);
24 yield break;
27 public static int Main ()
29 var c = new C ();
30 foreach (var a in c.Test ()) {
31 Console.WriteLine (a);
34 return 0;