Another dist build fix for rx integration, move *.cs file to safe-ish path.
[mono-project.git] / mcs / tests / test-734.cs
blob57180670c0d2e11663da85c51cad301c136f3bf4
1 // Compiler options: -optimize -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;