Fix LinearGradientMode parameter validation to match corefx (#5672)
[mono.git] / mcs / tests / test-734.cs
1 // Compiler options: -optimize -r:test-734-lib.dll
2
3 using System;
4 using System.Reflection;
5
6 class M : C
7 {
8         public void Run ()
9         {
10                 run = false;
11                 Console.WriteLine (run);
12         }
13         
14         public static int Main ()
15         {
16                 new M ().Run ();
17                 
18                 var body = typeof (M).GetMethod ("Run").GetMethodBody ();
19
20                 // Check for volatile. (0xFE1E)
21                 var array = body.GetILAsByteArray ();
22                 if (array[2] != 0xFE)
23                         return 1;
24
25                 if (array[3] != 0x13)
26                         return 1;
27                 
28                 return 0;
29         }
30 }