2010-05-27 Jb Evain <jbevain@novell.com>
[mcs.git] / build / common / basic-profile-check.cs
bloba945efb220d98bea5a64edf335bbc048f17315e1
1 class X {
2 // Check installed compiler
3 static void Generic<T> ()
5 // we use 'var' all around in the compiler sources
6 var x = new X ();
9 static int Main ()
11 // Check installed mscorlib
12 // Type is included in Mono 2.4+, and .NET 3.5 SP1
13 object o = typeof (System.Runtime.InteropServices.AllowReversePInvokeCallsAttribute);
15 // It should crash but double check it in case of very old old runtime
16 if (o == null)
17 return 1;
19 return 0;