a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
36 lines
555 B
C#
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;
|
|
}
|
|
}
|