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:
Diffstat (limited to 'mcs/tests/test-91.cs')
-rwxr-xr-xmcs/tests/test-91.cs53
1 files changed, 0 insertions, 53 deletions
diff --git a/mcs/tests/test-91.cs b/mcs/tests/test-91.cs
deleted file mode 100755
index 11dddc6b45c..00000000000
--- a/mcs/tests/test-91.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-using System;
-using System.Reflection;
-
-class Test {
-
- static protected internal void MyProtectedInternal () { }
- static internal void MyInternal() { }
- static public void MyPublic () { }
- static void MyPrivate () {}
-
- static int Main ()
- {
- Type myself = typeof (Test);
- BindingFlags bf = BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public;
- MethodAttributes mpia;
- MethodInfo mpi;
-
- //
- // protected internal
- //
- mpi = myself.GetMethod ("MyProtectedInternal", bf);
- mpia = mpi.Attributes & MethodAttributes.MemberAccessMask;
- if (mpia != MethodAttributes.FamORAssem)
- return 1;
-
- //
- // internal
- //
- mpi = myself.GetMethod ("MyInternal", bf);
- mpia = mpi.Attributes & MethodAttributes.MemberAccessMask;
- if (mpia != MethodAttributes.Assembly)
- return 2;
-
- //
- // public
- //
- mpi = myself.GetMethod ("MyPublic", bf);
- mpia = mpi.Attributes & MethodAttributes.MemberAccessMask;
- if (mpia != MethodAttributes.Public)
- return 3;
-
- //
- // private
- //
- mpi = myself.GetMethod ("MyPrivate", bf);
- mpia = mpi.Attributes & MethodAttributes.MemberAccessMask;
- if (mpia != MethodAttributes.Private)
- return 4;
-
- Console.WriteLine ("All tests pass");
- return 0;
- }
-}