[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-108.cs
1 using System;
2 using System.Collections.Generic;
3
4 public class Test<T>
5 {
6         protected T item;
7
8         public Test (T item)
9         {
10                 this.item = item;
11         }
12
13         public IEnumerator<T> GetEnumerator()
14         {
15                 yield return item;
16         }
17 }
18
19 class X
20 {
21         public static void Main ()
22         {
23                 Test<int> test = new Test<int> (3);
24                 foreach (int a in test)
25                         ;
26         }
27 }