[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-461.cs
1 using System;
2
3 public enum ArrowType {
4         Up,
5         Down,
6         Left,
7         Right,
8 }
9
10 public struct Value {
11         public Value (object obj) {
12         }
13         
14         public object Val {
15                 get {
16                         return ArrowType.Left;
17                 }
18         }
19         
20         public Enum Val2 {
21                 get {
22                         return ArrowType.Down;
23                 }
24         }
25 }
26         
27 public class Valtest {
28         public static int Main () {
29                 Value val;
30                 ArrowType i = (ArrowType)val.Val2;
31                 
32                 if ((ArrowType)(Enum)val.Val != ArrowType.Left)
33                         return 1;
34
35                 Console.WriteLine ("OK");
36                 return 0;
37         }
38 }
39