Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-04-29 15:12:47 +0400
committerMarek Safar <marek.safar@gmail.com>2010-04-29 15:12:47 +0400
commit7e50a4f70eb81fcd7487277c479bf42924262733 (patch)
tree0d9104034d91d3a12fa86f3836f028f26033b0c7 /mcs/tests/test-734.cs
parent732841a4f171062563a831fb8cd3165be1ddfd6e (diff)
Test improved.
svn path=/trunk/mcs/; revision=156415
Diffstat (limited to 'mcs/tests/test-734.cs')
-rw-r--r--mcs/tests/test-734.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/tests/test-734.cs b/mcs/tests/test-734.cs
index d8a4cc21bb9..da2a70da60e 100644
--- a/mcs/tests/test-734.cs
+++ b/mcs/tests/test-734.cs
@@ -1,6 +1,7 @@
// Compiler options: -r:test-734-lib.dll
using System;
+using System.Reflection;
class M : C
{
@@ -13,6 +14,17 @@ class M : C
public static int Main ()
{
new M ().Run ();
+
+ var body = typeof (M).GetMethod ("Run").GetMethodBody ();
+
+ // Check for volatile. (0xFE1E)
+ var array = body.GetILAsByteArray ();
+ if (array[2] != 0xFE)
+ return 1;
+
+ if (array[3] != 0x13)
+ return 1;
+
return 0;
}
}