Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

36 lines
555 B
C#

// Compiler options: -r:gtest-417-lib.dll
using System;
using System.Collections;
class Indirect : Base
{
}
abstract class Base : IEnumerable
{
IEnumerator IEnumerable.GetEnumerator ()
{
return new int [0].GetEnumerator ();
}
}
public class TestCase
{
public static GlobalMonitoredCharacterCollection MonitoredCharacters;
public static int Main ()
{
MonitoredCharacters = new GlobalMonitoredCharacterCollection();
foreach (var character in MonitoredCharacters)
{
}
foreach (var n in new Indirect ())
{
}
return 0;
}
}