summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-iter-25.cs
blob: 4d039a00ccd70144ee71bc18b2d2354ff20457e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System.Collections.Generic;

namespace Test
{
	public static class Program
	{
		public static void Main ()
		{
			foreach (var a in Test ())
				Test ();
		}

		public static IEnumerable<object> Test ()
		{
			lock (new object ()) {
				yield return null;
				yield break;
			}
		}
	}
}