"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / tests / gtest-iter-14.cs
blob326f0f5446e02463f2f79d6e302b63414d6e9d3f
1 using System;
2 using System.Collections.Generic;
4 class A
6 protected virtual int BaseM {
7 get {
8 return 2;
10 set
12 throw new ApplicationException ("it should not be called");
17 class B : A
19 protected override int BaseM {
20 set
26 struct S
28 public IEnumerable<int> GetIt ()
30 yield return base.GetHashCode ();
34 class X : B
36 protected override int BaseM {
37 set
39 throw new ApplicationException ("it should not be called");
43 IEnumerable<int> GetIt ()
45 yield return base.BaseM++;
48 public static int Main ()
50 foreach (var v in new X ().GetIt ())
51 Console.WriteLine (v);
53 foreach (var v in new S ().GetIt ())
54 Console.WriteLine (v);
56 return 0;