summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1944-6.cs
blob: 60efab1f9753888cb91d80a5bf93c458fb898261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS1944: An expression tree cannot contain an unsafe pointer operation
// Line: 14
// Compiler options: -unsafe

using System;
using System.Linq.Expressions;

class C
{
	unsafe delegate byte* D (int*[] d);
	public static void Main ()
	{
		unsafe {
			Expression<D> e6 = (p) => (byte*)p [10];
		}
	}
}