Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / tests / gtest-417.cs
1 // Compiler options: -r:gtest-417-lib.dll
2
3 using System;
4 using System.Collections;
5
6 class Indirect : Base
7 {
8 }
9
10 abstract class Base : IEnumerable
11 {
12         IEnumerator IEnumerable.GetEnumerator ()
13         {
14                 return new int [0].GetEnumerator ();
15         }
16 }
17
18 public class TestCase
19 {
20         public static GlobalMonitoredCharacterCollection MonitoredCharacters;
21         
22         public static int Main ()
23         {
24                 MonitoredCharacters = new GlobalMonitoredCharacterCollection();
25                 foreach (var character in MonitoredCharacters)
26                 {
27                 }
28                 
29                 foreach (var n in new Indirect ())
30                 {
31                 }
32                 
33                 return 0;
34         }
35 }