[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-376.cs
1 using System;
2
3 class C {
4         internal enum Flags {
5                 Removed = 0,
6                 Public  = 1
7         }
8
9         static Flags    _enumFlags;
10                 
11         public static int Main()
12         {       
13                 bool xx = Flags.Public != 0;
14                 bool xx2 = 0 < Flags.Public;
15             
16                 if ((_enumFlags & Flags.Removed) != 0)
17                         return 3;
18
19                 if ((Flags.Public & 0).ToString () != "Removed")
20                     return 1;
21                 
22                 if ((0 & Flags.Public).ToString () != "Removed")
23                     return 1;
24                 
25                 Console.WriteLine ("OK");
26                 return 0;
27         }
28 }