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>2008-07-25 22:15:22 +0400
committerMarek Safar <marek.safar@gmail.com>2008-07-25 22:15:22 +0400
commit08edb475af738f1ef499bf0df281a033e5e57f65 (patch)
tree1c1e00ba806225c6576ac5a19723e1d9cf59a8fe /mcs/tests/test-366.cs
parent240f61dbc8753e265e0050314d90d155c9ca9ebc (diff)
New test, update.
svn path=/trunk/mcs/; revision=108801
Diffstat (limited to 'mcs/tests/test-366.cs')
-rw-r--r--mcs/tests/test-366.cs19
1 files changed, 0 insertions, 19 deletions
diff --git a/mcs/tests/test-366.cs b/mcs/tests/test-366.cs
index 357c4c5ac8f..f3380e9230b 100644
--- a/mcs/tests/test-366.cs
+++ b/mcs/tests/test-366.cs
@@ -17,26 +17,7 @@ class C
foo2 f = new foo2 ();
// On .NET if we got this far, we run
- // On Mono, we are going to actually use an internal routine to check if the offset is there
- //
- Type fit = typeof (FieldInfo);
- MethodInfo gfo = fit.GetMethod ("GetFieldOffset", BindingFlags.Instance | BindingFlags.NonPublic);
- if (gfo == null){
- Console.WriteLine ("PASS: On MS runtime, Test OK");
- return 0;
- }
- Type t = typeof (foo2);
- FieldInfo fi = t.GetField ("$PRIVATE$", BindingFlags.Instance | BindingFlags.NonPublic);
-
- object res = gfo.Invoke (fi, null);
- if (res.GetType () != typeof (Int32))
- return 1;
- int r = (int) res;
- if (r != 0){
- Console.WriteLine ("FAIL: Offset is not zero");
- return 1;
- }
Console.WriteLine ("PASS: Test passes on Mono");
return 0;
}