2010-03-12 Jb Evain <jbevain@novell.com>
[mono.git] / mcs / build / common / basic-profile-check.cs
1 class X {
2         // Check installed compiler
3         static void Generic<T> () { }
4
5         static int Main ()
6         {
7                 // Check installed mscorlib
8                 // Type is included in Mono 2.4+, and .NET 3.5 SP1
9                 object o = typeof (System.Runtime.InteropServices.AllowReversePInvokeCallsAttribute);
10                 
11                 // It should crash but double check it in case of very old old runtime
12                 if (o == null)
13                         return 1;
14
15                 return 0;
16         }
17 }