summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1944-3.cs
blob: 3a5e310be772c9006ab4bed221f6ec2582ca0a1d (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 = p => *p;
		}
	}
}