diff options
author | Marek Safar <marek.safar@gmail.com> | 2007-10-02 18:52:45 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2007-10-02 18:52:45 +0400 |
commit | 0713bbe8ba43bc22a5d93bf05ed96c68a15166cf (patch) | |
tree | bc9cef0cf5e4001b89d7ee60bfb74860a397c6de /mcs/tests/gtest-340.cs | |
parent | a7d6d3076ec14d66d751129c154fa1fe45e1d13b (diff) |
New test.
svn path=/trunk/mcs/; revision=86749
Diffstat (limited to 'mcs/tests/gtest-340.cs')
-rw-r--r-- | mcs/tests/gtest-340.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mcs/tests/gtest-340.cs b/mcs/tests/gtest-340.cs new file mode 100644 index 00000000000..25077db5eda --- /dev/null +++ b/mcs/tests/gtest-340.cs @@ -0,0 +1,31 @@ +using System; +using System.IO; +using System.Reflection; + +class Tests +{ + public static T [] FindAll<T> (T [] array, Predicate<T> match) + { + return new T [0]; + } + + private bool ProtectedOnly (MemberInfo input) + { + return false; + } + + public MemberInfo [] foo () + { + string name = "FOO"; + MemberInfo [] res = FindAll (typeof (int).GetMember (name, + BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic), + ProtectedOnly); + return res; + } + + public static void Main (String [] args) + { + new Tests ().foo (); + } +} + |