[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-417.cs
blobf2c7e2a45c96eacbf51512e129ccddccbafc9cbc
1 // Compiler options: -r:gtest-417-lib.dll
3 using System;
4 using System.Collections;
6 class Indirect : Base
10 abstract class Base : IEnumerable
12 IEnumerator IEnumerable.GetEnumerator ()
14 return new int [0].GetEnumerator ();
18 public class TestCase
20 public static GlobalMonitoredCharacterCollection MonitoredCharacters;
22 public static int Main ()
24 MonitoredCharacters = new GlobalMonitoredCharacterCollection();
25 foreach (var character in MonitoredCharacters)
29 foreach (var n in new Indirect ())
33 return 0;