[System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange...
[mono-project.git] / mcs / tests / test-928.cs
blob9018013795782e3eeb0ce61e00dbc3d3b8e0c454
1 // Compiler options: -unsafe
3 using System;
4 using System.Reflection;
5 using System.Linq;
7 unsafe class Program
9 public static void Test ()
11 string s = "";
12 unsafe {
13 fixed (char *chars = s) {
18 public static int Main ()
20 Test ();
22 var m = typeof (Program).GetMethod ("Test");
23 var lv = m.GetMethodBody ().LocalVariables.Where (l => l.LocalType == typeof (char*)).Single ();
24 if (lv.IsPinned)
25 return 1;
27 return 0;