Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / test-263.cs
1 // Compiler options: -unsafe
2
3 using System;
4
5 class Test {
6         public String GetString (byte[] bytes)
7         {
8                 unsafe {
9                     int* i;
10                 }
11                 
12                 unsafe {
13                         fixed (byte *ss = &bytes [0]) {
14                                 int* i;
15                                 return new String ((sbyte*)ss, 0, bytes.Length);
16                         }
17                 }
18         }
19         
20         public static void Main () {}
21 }