2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-734.cs
blobda2a70da60e9002b0c7f962dc088fa9879828991
1 // Compiler options: -r:test-734-lib.dll
3 using System;
4 using System.Reflection;
6 class M : C
8 public void Run ()
10 run = false;
11 Console.WriteLine (run);
14 public static int Main ()
16 new M ().Run ();
18 var body = typeof (M).GetMethod ("Run").GetMethodBody ();
20 // Check for volatile. (0xFE1E)
21 var array = body.GetILAsByteArray ();
22 if (array[2] != 0xFE)
23 return 1;
25 if (array[3] != 0x13)
26 return 1;
28 return 0;