[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-linq-25.cs
1 using System;
2 using System.Linq;
3
4 class A
5 {
6         public string Header { get { return null; } }
7 }
8
9 class B
10 {
11         public string Name { get { return null; } }
12 }
13
14 class C
15 {
16         public static int Main ()
17         {
18                 Test (delegate () {
19                         var a = new A[0];
20                         var b = new B[0];
21
22                         if (a != null) {
23                                 var r = from c in new A[0]
24                                                 from p in new B[0]
25                                                 where c.Header == p.Name && p.Name == typeof (string).ToString ()
26                                                 select new { C = c, P = p };
27                         }
28                 });
29                 
30                 return 0;
31         }
32
33         static void Test (Action a)
34         {
35                 a ();
36         }
37 }