2010-05-19 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / test-132.cs
blob0ac9a986ce42b2234604ab71825f797bcbbee424
1 using System.Reflection;
3 class T {
4 protected internal string s;
5 static int Main() {
6 FieldInfo f = typeof(T).GetField ("s", BindingFlags.NonPublic|BindingFlags.Instance);
7 if (f == null)
8 return 2;
9 FieldAttributes attrs = f.Attributes;
10 if ((attrs & FieldAttributes.FieldAccessMask) != FieldAttributes.FamORAssem)
11 return 1;
12 return 0;