Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-629.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 755222782a55483e21118c3e9cb93f907a92639d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Compiler options: -unsafe

using System;
using System.Collections.Generic;

public class Program
{
	 public unsafe static void Main ()
	 {
		var list = new List<object> () { "" };
		fixed (char *c = (string)list[0]) {
			
		}

		var list2 = new List<object> () { null };
		fixed (byte* p = (byte[])list2[0]) {
		}
	
	 }
}