[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / gtest-autoproperty-08.cs
blob3aeeb7a35270c7da601d1c2b28c42eb4c22c4b5b
1 using System;
2 using System.Reflection;
4 class AAttribute : Attribute
8 class Program
10 [field: A]
11 public int Prop { get; set; }
13 public static int Main ()
15 var f = typeof (Program).GetFields (BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly);
16 if (f[0].GetCustomAttribute<AAttribute> () == null)
17 return 1;
19 return 0;