[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / test-488.cs
blobb0d59895a25f9624c6a35f5ab8b7a2624939a911
1 using System.Collections;
3 class P {
4 public int x;
7 struct Q {
8 public P p;
9 public Q (P p) { this.p = p; }
12 class Test {
13 static IEnumerable foo () { return null; }
15 public static void Main ()
17 IEnumerable f = foo ();
18 if (f != null)
19 foreach (P p in f)
20 p.x = 0;
21 if (f != null)
22 foreach (Q q in f)
23 q.p.x = 0;