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

using System;
using System.Linq.Expressions;

class C
{
	unsafe delegate int* D (int i);
	
	public static void Main ()
	{
		unsafe {
			Expression<D> e = (int p) => &p;
		}
	}
}